Detail: IndexMicrosecond: Accessor Hashlib

Overview: IndexMicrosecond: Accessor Hashlib

IndexMicrosecond.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.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexMicrosecond>
1517-04-01T00:00:00.000000
1517-12-31T00:00:00.000000
1517-06-30T00:00:00.000000
<datetime64[us]>
>>> ix.via_hashlib(include_name=False).to_bytes()
b'IndexMicrosecond\x00 \x01\xcc\x8f=\xcd\xff\x00\xe0\x85\xbc\x17S\xcd\xff\x00\xe0\xb8I\xa2D\xcd\xff'
IndexMicrosecond.via_hashlib(include_name, include_class, encoding).md5()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.md5()[source]
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexMicrosecond>
1517-04-01T00:00:00.000000
1517-12-31T00:00:00.000000
1517-06-30T00:00:00.000000
<datetime64[us]>
>>> ix.via_hashlib(include_name=False).md5().hexdigest()
390781927890f9c5fe0f156c11389cf8
IndexMicrosecond.via_hashlib(include_name, include_class, encoding).sha256()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha256()[source]
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexMicrosecond>
1517-04-01T00:00:00.000000
1517-12-31T00:00:00.000000
1517-06-30T00:00:00.000000
<datetime64[us]>
>>> ix.via_hashlib(include_name=False).sha256().hexdigest()
e9b165338a65df2190543f6658cf423a22a10c6e9199a0f4d063548e4a542f4d
IndexMicrosecond.via_hashlib(include_name, include_class, encoding).sha512()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha512()[source]
>>> ix = sf.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexMicrosecond>
1517-04-01T00:00:00.000000
1517-12-31T00:00:00.000000
1517-06-30T00:00:00.000000
<datetime64[us]>
>>> ix.via_hashlib(include_name=False).sha512().hexdigest()
a53feff570447c2a5aad2f69c05f5c038767a112543053926d7911c8586efacc8ce1ec16fbae02eb18c05e0ffa0804ce0c8cebd67b42266b57212bd15dc6b0ac
IndexMicrosecond.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.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexMicrosecond>
1517-04-01T00:00:00.000000
1517-12-31T00:00:00.000000
1517-06-30T00:00:00.000000
<datetime64[us]>
>>> ix.via_hashlib(include_name=False).sha3_256().hexdigest()
6537d43f76e32f0bd4536e125b09814d4b9354480ac57b11f157b0eb645c6230
IndexMicrosecond.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.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexMicrosecond>
1517-04-01T00:00:00.000000
1517-12-31T00:00:00.000000
1517-06-30T00:00:00.000000
<datetime64[us]>
>>> ix.via_hashlib(include_name=False).sha3_512().hexdigest()
a00138e17000727a1f77673c454e905a64d2a33c5a381c35d00026ea75960db116bb6383964814f9aa1ab06911b35f4c7f028892ccd0f6e51e3872e163fd1eb9
IndexMicrosecond.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.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexMicrosecond>
1517-04-01T00:00:00.000000
1517-12-31T00:00:00.000000
1517-06-30T00:00:00.000000
<datetime64[us]>
>>> ix.via_hashlib(include_name=False).shake_128().hexdigest(8)
31383327980dc871
IndexMicrosecond.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.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexMicrosecond>
1517-04-01T00:00:00.000000
1517-12-31T00:00:00.000000
1517-06-30T00:00:00.000000
<datetime64[us]>
>>> ix.via_hashlib(include_name=False).shake_256().hexdigest(8)
2ecd78136ed39c4f
IndexMicrosecond.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.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexMicrosecond>
1517-04-01T00:00:00.000000
1517-12-31T00:00:00.000000
1517-06-30T00:00:00.000000
<datetime64[us]>
>>> ix.via_hashlib(include_name=False).blake2b().hexdigest()
67afaf9e49e9146ceb7d41e5f38ac551f0b82ce50f15e44746e06a1663d25bad752ccf6752d590a1318e63a653e1ac74815e32a877893be3db8d47858f64692c
IndexMicrosecond.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.IndexMicrosecond(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexMicrosecond>
1517-04-01T00:00:00.000000
1517-12-31T00:00:00.000000
1517-06-30T00:00:00.000000
<datetime64[us]>
>>> ix.via_hashlib(include_name=False).blake2s().hexdigest()
00708e40079c86b3bcb29fab77ea0bb1dc0640889bcdb3ccd3e4d037457af654

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