Detail: IndexNanosecond: Accessor Hashlib

Overview: IndexNanosecond: Accessor Hashlib

IndexNanosecond.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.

>>> ix = sf.IndexNanosecond(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix
<IndexNanosecond>
1789-05-05T00:00:00.000000000
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
>>> ix.via_hashlib(include_name=False).to_bytes()
b'IndexNanosecond\x00\x00\xc0\xb5\xb2\xea\xe1\xb0\x00\x00\xd0\xef\xfa\x95+\xb1\x00\x00\xc0V6\x9f|\xb5'
IndexNanosecond.via_hashlib(include_name, include_class, encoding).md5()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.md5()[source]
>>> ix = sf.IndexNanosecond(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix
<IndexNanosecond>
1789-05-05T00:00:00.000000000
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
>>> ix.via_hashlib(include_name=False).md5().hexdigest()
2b68df8c1b6545b0ac7e5145d49db39b
IndexNanosecond.via_hashlib(include_name, include_class, encoding).sha256()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha256()[source]
>>> ix = sf.IndexNanosecond(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix
<IndexNanosecond>
1789-05-05T00:00:00.000000000
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
>>> ix.via_hashlib(include_name=False).sha256().hexdigest()
938160554b2f00a7131f9829ee83aa2f22dc327770f513ae1b5f089d03a0a9a9
IndexNanosecond.via_hashlib(include_name, include_class, encoding).sha512()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha512()[source]
>>> ix = sf.IndexNanosecond(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix
<IndexNanosecond>
1789-05-05T00:00:00.000000000
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
>>> ix.via_hashlib(include_name=False).sha512().hexdigest()
736d0d26af55194bbdc7c775037453e6484206fac9fcaf1976d2b04b3f835648c8b3f31932dcddf80af8d40e105662a5dd59b57ecd27b656d5972156d28cf418
IndexNanosecond.via_hashlib(include_name, include_class, encoding).sha3_256()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha3_256()[source]
>>> ix = sf.IndexNanosecond(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix
<IndexNanosecond>
1789-05-05T00:00:00.000000000
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
>>> ix.via_hashlib(include_name=False).sha3_256().hexdigest()
00a45a1fa0d497966a1f4a7b73bc34839440af82c0aab4cee2f1cbd1519a63a4
IndexNanosecond.via_hashlib(include_name, include_class, encoding).sha3_512()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha3_512()[source]
>>> ix = sf.IndexNanosecond(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix
<IndexNanosecond>
1789-05-05T00:00:00.000000000
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
>>> ix.via_hashlib(include_name=False).sha3_512().hexdigest()
a0d8c9c1b3399c3e7a902c6ae833c582df05978acb3633b72157a7bf62ee3705c7d05b5dc4f12b43947e09778c16cd4f078eb3f63492b7213c113f9fef87b0b0
IndexNanosecond.via_hashlib(include_name, include_class, encoding).shake_128()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.shake_128()[source]
>>> ix = sf.IndexNanosecond(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix
<IndexNanosecond>
1789-05-05T00:00:00.000000000
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
>>> ix.via_hashlib(include_name=False).shake_128().hexdigest(8)
38f268fb23440bcc
IndexNanosecond.via_hashlib(include_name, include_class, encoding).shake_256()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.shake_256()[source]
>>> ix = sf.IndexNanosecond(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix
<IndexNanosecond>
1789-05-05T00:00:00.000000000
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
>>> ix.via_hashlib(include_name=False).shake_256().hexdigest(8)
44c0579c64194cdd
IndexNanosecond.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]
>>> ix = sf.IndexNanosecond(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix
<IndexNanosecond>
1789-05-05T00:00:00.000000000
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
>>> ix.via_hashlib(include_name=False).blake2b().hexdigest()
b44f98ae1388480a84eac68fbf5f5b88b9577cad1f545771c067e71a7215b47cf6c5070778fc797e20a8f8b87014eb15cbb05fc79409ff0175ffe7408f2047a3
IndexNanosecond.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]
>>> ix = sf.IndexNanosecond(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix
<IndexNanosecond>
1789-05-05T00:00:00.000000000
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
>>> ix.via_hashlib(include_name=False).blake2s().hexdigest()
29b969d47a75dffe5a33879200f86cadad31d61beb404af781fe65f68ed5cb68

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