Detail: FrameHE: Accessor Hashlib

Overview: FrameHE: Accessor Hashlib

FrameHE.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.FrameHE.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
<FrameHE: x>
<Index>      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'FrameHEIndex\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\x00Indexa\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'
FrameHE.via_hashlib(include_name, include_class, encoding).md5()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.md5()[source]
>>> f = sf.FrameHE.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
<FrameHE: x>
<Index>      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()
2821094d51147f883359ce491981fd1e
FrameHE.via_hashlib(include_name, include_class, encoding).sha256()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha256()[source]
>>> f = sf.FrameHE.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
<FrameHE: x>
<Index>      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()
e8c7099efa7eba6cfa2ddae3081a14e3633e284dd9e2d0d0698b1f94ce19ed01
FrameHE.via_hashlib(include_name, include_class, encoding).sha512()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha512()[source]
>>> f = sf.FrameHE.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
<FrameHE: x>
<Index>      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()
c0d9acaa7a9639d6af3d992fab889af6f93b2e0abd726abee9f21f5e060a8f20a85b1bd54a4f43e64f19db00298ff7e7c7e7b797419d8973a24560b4673cae38
FrameHE.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.FrameHE.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
<FrameHE: x>
<Index>      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()
d18d423673d4c08ac9d6e552e2b8f53f34d8848a0600540f4b14ee7a44bfe250
FrameHE.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.FrameHE.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
<FrameHE: x>
<Index>      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()
9e8d3db95716332df6bb62659f1b168c4e3f30969329f1d4883f313dcf5936c40dc8a6f5a17b9149c3f9aa1e611f07546026617c24974db15570842eb679e60f
FrameHE.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.FrameHE.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
<FrameHE: x>
<Index>      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)
875f2ad2ca8d6b43
FrameHE.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.FrameHE.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
<FrameHE: x>
<Index>      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)
61d87c3ab95fbd6d
FrameHE.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.FrameHE.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
<FrameHE: x>
<Index>      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()
09bd94749ebf389054dda42d9a7345c55315a743e41ee6b59bd57ee1013af39a79409d50bc744d6307dfa1db848654687363eb190c9c993bd8d21c6d969b6fb2
FrameHE.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.FrameHE.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
<FrameHE: x>
<Index>      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()
784046437a7833e35996b0202b6c755e69b6e30ee8fe0738f8d196820c6e0ae9

FrameHE: 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