Detail: FrameGO: Accessor Hashlib

Overview: FrameGO: Accessor Hashlib

FrameGO.via_hashlib(include_name, include_class, encoding).to_bytes()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.to_bytes()[source]

Return the byte signature for this container, suitable for passing to a cryptographic hash function.

>>> f = sf.FrameGO.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x')
>>> f
<FrameGO: x>
<IndexGO>    a       b     c               <<U1>
<Index>
0            10      qrs   1517-01-01
1            2       XYZ   1517-04-01
2            8       123   1517-12-31
3            3        wX   1517-06-30
<int64>      <int64> <<U4> <datetime64[D]>
>>> f.via_hashlib(include_name=False).to_bytes()
b'FrameGOIndex\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00IndexGOa\x00\x00\x00b\x00\x00\x00c\x00\x00\x00\n\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00q\x00\x00\x00r\x00\x00\x00s\x00\x00\x00 \x00\x00\x00X\x00\x00\x00Y\x00\x00\x00Z\x00\x00\x00\x00\x00\x00\x001\x00\x00\x002\x00\x00\x003\x00\x00\x00\x00\x00\x00\x00 \x00\x00\x00w\x00\x00\x00X\x00\x00\x00 \x00\x00\x00\xb1y\xfd\xff\xff\xff\xff\xff\x0bz\xfd\xff\xff\xff\xff\xff\x1d{\xfd\xff\xff\xff\xff\xffez\xfd\xff\xff\xff\xff\xff'
FrameGO.via_hashlib(include_name, include_class, encoding).md5()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.md5()[source]
>>> f = sf.FrameGO.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x')
>>> f
<FrameGO: x>
<IndexGO>    a       b     c               <<U1>
<Index>
0            10      qrs   1517-01-01
1            2       XYZ   1517-04-01
2            8       123   1517-12-31
3            3        wX   1517-06-30
<int64>      <int64> <<U4> <datetime64[D]>
>>> f.via_hashlib(include_name=False).md5().hexdigest()
5d776c2ad38ad4f14e2067789c350869
FrameGO.via_hashlib(include_name, include_class, encoding).sha256()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha256()[source]
>>> f = sf.FrameGO.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x')
>>> f
<FrameGO: x>
<IndexGO>    a       b     c               <<U1>
<Index>
0            10      qrs   1517-01-01
1            2       XYZ   1517-04-01
2            8       123   1517-12-31
3            3        wX   1517-06-30
<int64>      <int64> <<U4> <datetime64[D]>
>>> f.via_hashlib(include_name=False).sha256().hexdigest()
e72692189222cc59ac71f1438698df520b02ef319a1d6f5be3cb6454c94a1a7f
FrameGO.via_hashlib(include_name, include_class, encoding).sha512()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha512()[source]
>>> f = sf.FrameGO.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x')
>>> f
<FrameGO: x>
<IndexGO>    a       b     c               <<U1>
<Index>
0            10      qrs   1517-01-01
1            2       XYZ   1517-04-01
2            8       123   1517-12-31
3            3        wX   1517-06-30
<int64>      <int64> <<U4> <datetime64[D]>
>>> f.via_hashlib(include_name=False).sha512().hexdigest()
37369fc48eed2c55876307dc6860b0ebb546d799217b46b10b63c842818bde7698581686b876d89fbf718f3aa03aa580e0cae444b9b2a320ae51ddbcf74978de
FrameGO.via_hashlib(include_name, include_class, encoding).sha3_256()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha3_256()[source]
>>> f = sf.FrameGO.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x')
>>> f
<FrameGO: x>
<IndexGO>    a       b     c               <<U1>
<Index>
0            10      qrs   1517-01-01
1            2       XYZ   1517-04-01
2            8       123   1517-12-31
3            3        wX   1517-06-30
<int64>      <int64> <<U4> <datetime64[D]>
>>> f.via_hashlib(include_name=False).sha3_256().hexdigest()
405e7c5661a178d789d681f154e9605df7ad7eb5a892897ba530ece310f8972f
FrameGO.via_hashlib(include_name, include_class, encoding).sha3_512()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha3_512()[source]
>>> f = sf.FrameGO.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x')
>>> f
<FrameGO: x>
<IndexGO>    a       b     c               <<U1>
<Index>
0            10      qrs   1517-01-01
1            2       XYZ   1517-04-01
2            8       123   1517-12-31
3            3        wX   1517-06-30
<int64>      <int64> <<U4> <datetime64[D]>
>>> f.via_hashlib(include_name=False).sha3_512().hexdigest()
e77e5f634849cf0250d914dd174f695da4220f793d3d82406b4fd65ef8431a1f45fa022a8577e4388a18e854d25107f2a67f719aededf8dcb6f371db62ec8df0
FrameGO.via_hashlib(include_name, include_class, encoding).shake_128()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.shake_128()[source]
>>> f = sf.FrameGO.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x')
>>> f
<FrameGO: x>
<IndexGO>    a       b     c               <<U1>
<Index>
0            10      qrs   1517-01-01
1            2       XYZ   1517-04-01
2            8       123   1517-12-31
3            3        wX   1517-06-30
<int64>      <int64> <<U4> <datetime64[D]>
>>> f.via_hashlib(include_name=False).shake_128().hexdigest(8)
86c6ca0df1414a35
FrameGO.via_hashlib(include_name, include_class, encoding).shake_256()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.shake_256()[source]
>>> f = sf.FrameGO.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x')
>>> f
<FrameGO: x>
<IndexGO>    a       b     c               <<U1>
<Index>
0            10      qrs   1517-01-01
1            2       XYZ   1517-04-01
2            8       123   1517-12-31
3            3        wX   1517-06-30
<int64>      <int64> <<U4> <datetime64[D]>
>>> f.via_hashlib(include_name=False).shake_256().hexdigest(8)
0a2e9a5d9e6cd7ef
FrameGO.via_hashlib(include_name, include_class, encoding).blake2b(*, digest_size, key, salt, person, fanout, depth, leaf_size, node_offset, node_depth, inner_size, last_node)
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.blake2b(*, digest_size=64, key=b'', salt=b'', person=b'', fanout=1, depth=1, leaf_size=0, node_offset=0, node_depth=0, inner_size=0, last_node=False)[source]
>>> f = sf.FrameGO.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x')
>>> f
<FrameGO: x>
<IndexGO>    a       b     c               <<U1>
<Index>
0            10      qrs   1517-01-01
1            2       XYZ   1517-04-01
2            8       123   1517-12-31
3            3        wX   1517-06-30
<int64>      <int64> <<U4> <datetime64[D]>
>>> f.via_hashlib(include_name=False).blake2b().hexdigest()
d3630968e54744ba143e85391db35704e7ee7fa7031ee32b2796aa762dbe5a257dc5c5499f8939e5a41fc48dfc7e8a1105591155622a4ba9865916e0f8d41e2f
FrameGO.via_hashlib(include_name, include_class, encoding).blake2s(*, digest_size, key, salt, person, fanout, depth, leaf_size, node_offset, node_depth, inner_size, last_node)
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.blake2s(*, digest_size=32, key=b'', salt=b'', person=b'', fanout=1, depth=1, leaf_size=0, node_offset=0, node_depth=0, inner_size=0, last_node=False)[source]
>>> f = sf.FrameGO.from_fields(((10, 2, 8, 3), ('qrs ', 'XYZ', '123', ' wX '), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x')
>>> f
<FrameGO: x>
<IndexGO>    a       b     c               <<U1>
<Index>
0            10      qrs   1517-01-01
1            2       XYZ   1517-04-01
2            8       123   1517-12-31
3            3        wX   1517-06-30
<int64>      <int64> <<U4> <datetime64[D]>
>>> f.via_hashlib(include_name=False).blake2s().hexdigest()
cebca441ca9ae07200b8f35a02edf2f4d7b2da2270c6fac37e630894ef621a92

FrameGO: Constructor | Exporter | Attribute | Method | Dictionary-Like | Display | Assignment | Selector | Iterator | Operator Binary | Operator Unary | Accessor Values | Accessor Datetime | Accessor String | Accessor Transpose | Accessor Fill Value | Accessor Regular Expression | Accessor Hashlib | Accessor Type Clinic