Detail: IndexHour: Accessor Hashlib

Overview: IndexHour: Accessor Hashlib

IndexHour.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.IndexHour(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexHour>
1517-04-01T00
1517-12-31T00
1517-06-30T00
<datetime64[h]>
>>> ix.via_hashlib(include_name=False).to_bytes()
b'IndexHour\x08q\xc3\xff\xff\xff\xff\xff\xb8\x8a\xc3\xff\xff\xff\xff\xffxy\xc3\xff\xff\xff\xff\xff'
IndexHour.via_hashlib(include_name, include_class, encoding).md5()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.md5()[source]
>>> ix = sf.IndexHour(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexHour>
1517-04-01T00
1517-12-31T00
1517-06-30T00
<datetime64[h]>
>>> ix.via_hashlib(include_name=False).md5().hexdigest()
1836688ab52d42cee913f2ca20cc5d40
IndexHour.via_hashlib(include_name, include_class, encoding).sha256()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha256()[source]
>>> ix = sf.IndexHour(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexHour>
1517-04-01T00
1517-12-31T00
1517-06-30T00
<datetime64[h]>
>>> ix.via_hashlib(include_name=False).sha256().hexdigest()
b4b2ce362a04180e6371586d1b780f580621ac267f4a397c1fb9412aea454b48
IndexHour.via_hashlib(include_name, include_class, encoding).sha512()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha512()[source]
>>> ix = sf.IndexHour(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexHour>
1517-04-01T00
1517-12-31T00
1517-06-30T00
<datetime64[h]>
>>> ix.via_hashlib(include_name=False).sha512().hexdigest()
e1654981a3a0bb428d268575bd36ea9a5ea5e733ab63a7c39f906cc3a73454dc38a2bf541bc66bb709698f500bbc0eff2a1478bb161021129e01a0f0663f6a79
IndexHour.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.IndexHour(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexHour>
1517-04-01T00
1517-12-31T00
1517-06-30T00
<datetime64[h]>
>>> ix.via_hashlib(include_name=False).sha3_256().hexdigest()
ac6de030b006877a25d4fb7234ba82a32981d16cd5ed09ec84d2ed5fac5c3bfe
IndexHour.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.IndexHour(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexHour>
1517-04-01T00
1517-12-31T00
1517-06-30T00
<datetime64[h]>
>>> ix.via_hashlib(include_name=False).sha3_512().hexdigest()
df759633b48114b4d75cc9b370d57dfed2ede3043d84e5808d450f7b72f94b7376e6d8876e7cece36a2d5c1d0e6c20123419f1ac2c619bb21e8e4bee9fb13c33
IndexHour.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.IndexHour(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexHour>
1517-04-01T00
1517-12-31T00
1517-06-30T00
<datetime64[h]>
>>> ix.via_hashlib(include_name=False).shake_128().hexdigest(8)
10ae69b1412ed9ea
IndexHour.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.IndexHour(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexHour>
1517-04-01T00
1517-12-31T00
1517-06-30T00
<datetime64[h]>
>>> ix.via_hashlib(include_name=False).shake_256().hexdigest(8)
72ce409eaea33422
IndexHour.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.IndexHour(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexHour>
1517-04-01T00
1517-12-31T00
1517-06-30T00
<datetime64[h]>
>>> ix.via_hashlib(include_name=False).blake2b().hexdigest()
49c5080625cbde41b5b38269692593f34458e525ad66ef759872dad62e4bcd95cb0e9980e7d212abedc561a841c3ffea95f9c6b434d5aa510d55a2e88a0ec50f
IndexHour.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.IndexHour(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexHour>
1517-04-01T00
1517-12-31T00
1517-06-30T00
<datetime64[h]>
>>> ix.via_hashlib(include_name=False).blake2s().hexdigest()
8d778a00c15f7f34f953aa7f085bcda8eb0b6696e272403ce623c3eef14cc5a3

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