Detail: IndexGO: Accessor Hashlib

Overview: IndexGO: Accessor Hashlib

IndexGO.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.IndexGO(('qrs ', 'XYZ', '123', ' wX '))
>>> ix
<IndexGO>
qrs
XYZ
123
 wX
<<U4>
>>> ix.via_hashlib(include_name=False).to_bytes()
b'IndexGOq\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'
IndexGO.via_hashlib(include_name, include_class, encoding).md5()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.md5()[source]
>>> ix = sf.IndexGO(('qrs ', 'XYZ', '123', ' wX '))
>>> ix
<IndexGO>
qrs
XYZ
123
 wX
<<U4>
>>> ix.via_hashlib(include_name=False).md5().hexdigest()
0c16f5058d50cedce3d93711a18088ee
IndexGO.via_hashlib(include_name, include_class, encoding).sha256()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha256()[source]
>>> ix = sf.IndexGO(('qrs ', 'XYZ', '123', ' wX '))
>>> ix
<IndexGO>
qrs
XYZ
123
 wX
<<U4>
>>> ix.via_hashlib(include_name=False).sha256().hexdigest()
c815b13d8a313118e9c86ed8fe6d5aef921c8f92a0379cb7acce76974c4ba659
IndexGO.via_hashlib(include_name, include_class, encoding).sha512()
via_hashlib

Interface for deriving cryptographic hashes from this container.

InterfaceHashlib.sha512()[source]
>>> ix = sf.IndexGO(('qrs ', 'XYZ', '123', ' wX '))
>>> ix
<IndexGO>
qrs
XYZ
123
 wX
<<U4>
>>> ix.via_hashlib(include_name=False).sha512().hexdigest()
62a09270264fa7f1251b862675fc0eb24ae8068a76efa066c468d2ffbc3589d44a0e61df1b1ce6fa3090a6e37f92a74e97f4daabf44c626a0dfcf484faf4f493
IndexGO.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.IndexGO(('qrs ', 'XYZ', '123', ' wX '))
>>> ix
<IndexGO>
qrs
XYZ
123
 wX
<<U4>
>>> ix.via_hashlib(include_name=False).sha3_256().hexdigest()
926647c4d8590e5790f5c67fc68a19741d9bf47986e342725905a5737aebb5fd
IndexGO.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.IndexGO(('qrs ', 'XYZ', '123', ' wX '))
>>> ix
<IndexGO>
qrs
XYZ
123
 wX
<<U4>
>>> ix.via_hashlib(include_name=False).sha3_512().hexdigest()
822892c705635787f63c10f2c2ee909695d3e00980c2401b44931ecabe37c3bff2a2f11c3ba32d7abd78955ed54a600b532ee2711c6647e2252b0c8b4075b6af
IndexGO.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.IndexGO(('qrs ', 'XYZ', '123', ' wX '))
>>> ix
<IndexGO>
qrs
XYZ
123
 wX
<<U4>
>>> ix.via_hashlib(include_name=False).shake_128().hexdigest(8)
8b27c5dcab0b368e
IndexGO.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.IndexGO(('qrs ', 'XYZ', '123', ' wX '))
>>> ix
<IndexGO>
qrs
XYZ
123
 wX
<<U4>
>>> ix.via_hashlib(include_name=False).shake_256().hexdigest(8)
f3b7d93b52855052
IndexGO.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.IndexGO(('qrs ', 'XYZ', '123', ' wX '))
>>> ix
<IndexGO>
qrs
XYZ
123
 wX
<<U4>
>>> ix.via_hashlib(include_name=False).blake2b().hexdigest()
99255be554feb7e62066da21d8a779120bf9eb1961e1387018b769e82992b7ba7be3bf1b5bd642c553f9e9089cf69f6880b5c0105b4c5bfa556f7f5079d0d9af
IndexGO.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.IndexGO(('qrs ', 'XYZ', '123', ' wX '))
>>> ix
<IndexGO>
qrs
XYZ
123
 wX
<<U4>
>>> ix.via_hashlib(include_name=False).blake2s().hexdigest()
d06aec0088aeea5db879c39d0f5ab7c6f049c9a248cd186e0dd831747387826d

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