Detail: IndexHierarchyGO: Accessor Hashlib

Overview: IndexHierarchyGO: Accessor Hashlib

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

>>> ih = sf.IndexHierarchyGO.from_labels((('qrs ', '4/1/1517'), ('XYZ', '12/31/1517'), ('123', '6/30/1517'), (' wX ', '12/31/2021')))
>>> ih
<IndexHierarchyGO>
qrs                4/1/1517
XYZ                12/31/1517
123                6/30/1517
 wX                12/31/2021
<<U4>              <<U10>
>>> ih.via_hashlib(include_name=False).to_bytes()
b'IndexHierarchyGOq\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\x004\x00\x00\x00/\x00\x00\x001\x00\x00\x00/\x00\x00\x001\x00\x00\x005\x00\x00\x001\x00\x00\x007\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x001\x00\x00\x002\x00\x00\x00/\x00\x00\x003\x00\x00\x001\x00\x00\x00/\x00\x00\x001\x00\x00\x005\x00\x00\x001\x00\x00\x007\x00\x00\x006\x00\x00\x00/\x00\x00\x003\x00\x00\x000\x00\x00\x00/\x00\x00\x001\x00\x00\x005\x00\x00\x001\x00\x00\x007\x00\x00\x00\x00\x00\x00\x001\x00\x00\x002\x00\x00\x00/\x00\x00\x003\x00\x00\x001\x00\x00\x00/\x00\x00\x002\x00\x00\x000\x00\x00\x002\x00\x00\x001\x00\x00\x00'
IndexHierarchyGO.via_hashlib(include_name, include_class, encoding).md5()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.md5()[source]
>>> ih = sf.IndexHierarchyGO.from_labels((('qrs ', '4/1/1517'), ('XYZ', '12/31/1517'), ('123', '6/30/1517'), (' wX ', '12/31/2021')))
>>> ih
<IndexHierarchyGO>
qrs                4/1/1517
XYZ                12/31/1517
123                6/30/1517
 wX                12/31/2021
<<U4>              <<U10>
>>> ih.via_hashlib(include_name=False).md5().hexdigest()
e4e20abad75da85a45b363cddc7c51d0
IndexHierarchyGO.via_hashlib(include_name, include_class, encoding).sha256()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha256()[source]
>>> ih = sf.IndexHierarchyGO.from_labels((('qrs ', '4/1/1517'), ('XYZ', '12/31/1517'), ('123', '6/30/1517'), (' wX ', '12/31/2021')))
>>> ih
<IndexHierarchyGO>
qrs                4/1/1517
XYZ                12/31/1517
123                6/30/1517
 wX                12/31/2021
<<U4>              <<U10>
>>> ih.via_hashlib(include_name=False).sha256().hexdigest()
c42f6d222a3dbae61b3ea80969c311ba869997b73fb3f6023e615567fd0a33b9
IndexHierarchyGO.via_hashlib(include_name, include_class, encoding).sha512()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha512()[source]
>>> ih = sf.IndexHierarchyGO.from_labels((('qrs ', '4/1/1517'), ('XYZ', '12/31/1517'), ('123', '6/30/1517'), (' wX ', '12/31/2021')))
>>> ih
<IndexHierarchyGO>
qrs                4/1/1517
XYZ                12/31/1517
123                6/30/1517
 wX                12/31/2021
<<U4>              <<U10>
>>> ih.via_hashlib(include_name=False).sha512().hexdigest()
ba3b13d827b3005a0c03b3fd05478009d09c18ebe84c1be4d5745c566d6af9c52ee8f4151992eb39b8fc64acb0160eb942827d5a980abcd5f7efdd975d7b4e75
IndexHierarchyGO.via_hashlib(include_name, include_class, encoding).sha3_256()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha3_256()[source]
>>> ih = sf.IndexHierarchyGO.from_labels((('qrs ', '4/1/1517'), ('XYZ', '12/31/1517'), ('123', '6/30/1517'), (' wX ', '12/31/2021')))
>>> ih
<IndexHierarchyGO>
qrs                4/1/1517
XYZ                12/31/1517
123                6/30/1517
 wX                12/31/2021
<<U4>              <<U10>
>>> ih.via_hashlib(include_name=False).sha3_256().hexdigest()
149201c31f5f0f4e308ee014a3255cb28a56b01b8620514edfdccebaba057c76
IndexHierarchyGO.via_hashlib(include_name, include_class, encoding).sha3_512()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha3_512()[source]
>>> ih = sf.IndexHierarchyGO.from_labels((('qrs ', '4/1/1517'), ('XYZ', '12/31/1517'), ('123', '6/30/1517'), (' wX ', '12/31/2021')))
>>> ih
<IndexHierarchyGO>
qrs                4/1/1517
XYZ                12/31/1517
123                6/30/1517
 wX                12/31/2021
<<U4>              <<U10>
>>> ih.via_hashlib(include_name=False).sha3_512().hexdigest()
120efcb630288be19e03a286f990ed20d4f3e124cf7d61a263e464a5d3faa9420c93f06b5d32ac49473d3c3c5d069a6c727f604b8a56cf1a34cd81b7e4226692
IndexHierarchyGO.via_hashlib(include_name, include_class, encoding).shake_128()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.shake_128()[source]
>>> ih = sf.IndexHierarchyGO.from_labels((('qrs ', '4/1/1517'), ('XYZ', '12/31/1517'), ('123', '6/30/1517'), (' wX ', '12/31/2021')))
>>> ih
<IndexHierarchyGO>
qrs                4/1/1517
XYZ                12/31/1517
123                6/30/1517
 wX                12/31/2021
<<U4>              <<U10>
>>> ih.via_hashlib(include_name=False).shake_128().hexdigest(8)
41ce9c0472bb2984
IndexHierarchyGO.via_hashlib(include_name, include_class, encoding).shake_256()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.shake_256()[source]
>>> ih = sf.IndexHierarchyGO.from_labels((('qrs ', '4/1/1517'), ('XYZ', '12/31/1517'), ('123', '6/30/1517'), (' wX ', '12/31/2021')))
>>> ih
<IndexHierarchyGO>
qrs                4/1/1517
XYZ                12/31/1517
123                6/30/1517
 wX                12/31/2021
<<U4>              <<U10>
>>> ih.via_hashlib(include_name=False).shake_256().hexdigest(8)
82a3ac86fbfacf2c
IndexHierarchyGO.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]
>>> ih = sf.IndexHierarchyGO.from_labels((('qrs ', '4/1/1517'), ('XYZ', '12/31/1517'), ('123', '6/30/1517'), (' wX ', '12/31/2021')))
>>> ih
<IndexHierarchyGO>
qrs                4/1/1517
XYZ                12/31/1517
123                6/30/1517
 wX                12/31/2021
<<U4>              <<U10>
>>> ih.via_hashlib(include_name=False).blake2b().hexdigest()
9debec1361c7e9cde3af56498bbc2fd027617f41898738367b7a7d81d14f06d9909f28d459acc2ba4ee1ccc718700fe3291249012660611c0f8f9a6749752cd4
IndexHierarchyGO.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]
>>> ih = sf.IndexHierarchyGO.from_labels((('qrs ', '4/1/1517'), ('XYZ', '12/31/1517'), ('123', '6/30/1517'), (' wX ', '12/31/2021')))
>>> ih
<IndexHierarchyGO>
qrs                4/1/1517
XYZ                12/31/1517
123                6/30/1517
 wX                12/31/2021
<<U4>              <<U10>
>>> ih.via_hashlib(include_name=False).blake2s().hexdigest()
4c66ea773e42a20b858a41ef1d954427a1b407c40a0f126dd3864b0e1f2cb8bc

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