Detail: Bus: Accessor Hashlib
Overview: Bus: Accessor Hashlib
- Bus.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.
>>> b = sf.Bus.from_frames((sf.Frame(np.arange(6).reshape(3,2), index=('p', 'q', 'r'), columns=('a', 'b'), name='x'), sf.Frame((np.arange(6).reshape(3,2) % 2).astype(bool), index=('p', 'q', 'r'), columns=('c', 'd'), name='y')), name='i') >>> b <Bus: i> <Index> x Frame y Frame <<U1> <object> >>> b.via_hashlib(include_name=False).to_bytes() b'BusIndexx\x00\x00\x00y\x00\x00\x00FrameIndexp\x00\x00\x00q\x00\x00\x00r\x00\x00\x00Indexa\x00\x00\x00b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00FrameIndexp\x00\x00\x00q\x00\x00\x00r\x00\x00\x00Indexc\x00\x00\x00d\x00\x00\x00\x00\x00\x00\x01\x01\x01'
- Bus.via_hashlib(include_name, include_class, encoding).md5()
- via_hashlib
Interface for deriving cryptographic hashes from this container.
- InterfaceHashlib.md5()[source]
>>> b = sf.Bus.from_frames((sf.Frame(np.arange(6).reshape(3,2), index=('p', 'q', 'r'), columns=('a', 'b'), name='x'), sf.Frame((np.arange(6).reshape(3,2) % 2).astype(bool), index=('p', 'q', 'r'), columns=('c', 'd'), name='y')), name='i') >>> b <Bus: i> <Index> x Frame y Frame <<U1> <object> >>> b.via_hashlib(include_name=False).md5().hexdigest() 9479fbfd2ed693d15de2ef08eb481d7e
- Bus.via_hashlib(include_name, include_class, encoding).sha256()
- via_hashlib
Interface for deriving cryptographic hashes from this container.
- InterfaceHashlib.sha256()[source]
>>> b = sf.Bus.from_frames((sf.Frame(np.arange(6).reshape(3,2), index=('p', 'q', 'r'), columns=('a', 'b'), name='x'), sf.Frame((np.arange(6).reshape(3,2) % 2).astype(bool), index=('p', 'q', 'r'), columns=('c', 'd'), name='y')), name='i') >>> b <Bus: i> <Index> x Frame y Frame <<U1> <object> >>> b.via_hashlib(include_name=False).sha256().hexdigest() 8bd3452b81d9b1238020227ff432a85da57611d1970b21c99815206837b70bef
- Bus.via_hashlib(include_name, include_class, encoding).sha512()
- via_hashlib
Interface for deriving cryptographic hashes from this container.
- InterfaceHashlib.sha512()[source]
>>> b = sf.Bus.from_frames((sf.Frame(np.arange(6).reshape(3,2), index=('p', 'q', 'r'), columns=('a', 'b'), name='x'), sf.Frame((np.arange(6).reshape(3,2) % 2).astype(bool), index=('p', 'q', 'r'), columns=('c', 'd'), name='y')), name='i') >>> b <Bus: i> <Index> x Frame y Frame <<U1> <object> >>> b.via_hashlib(include_name=False).sha512().hexdigest() 49522cf3627869f435b292ac0e0a59c2631a1062086db5a28f75e5788f3899517ae759f2f423d633203dbd2e0428108773225d38d33d17d9d2427ab48340e8d0
- Bus.via_hashlib(include_name, include_class, encoding).sha3_256()
- via_hashlib
Interface for deriving cryptographic hashes from this container.
- InterfaceHashlib.sha3_256()[source]
>>> b = sf.Bus.from_frames((sf.Frame(np.arange(6).reshape(3,2), index=('p', 'q', 'r'), columns=('a', 'b'), name='x'), sf.Frame((np.arange(6).reshape(3,2) % 2).astype(bool), index=('p', 'q', 'r'), columns=('c', 'd'), name='y')), name='i') >>> b <Bus: i> <Index> x Frame y Frame <<U1> <object> >>> b.via_hashlib(include_name=False).sha3_256().hexdigest() 1d4baec1e848d5ff2c59b13dea8ae35b4c58318f843e63b613c13833bc86292a
- Bus.via_hashlib(include_name, include_class, encoding).sha3_512()
- via_hashlib
Interface for deriving cryptographic hashes from this container.
- InterfaceHashlib.sha3_512()[source]
>>> b = sf.Bus.from_frames((sf.Frame(np.arange(6).reshape(3,2), index=('p', 'q', 'r'), columns=('a', 'b'), name='x'), sf.Frame((np.arange(6).reshape(3,2) % 2).astype(bool), index=('p', 'q', 'r'), columns=('c', 'd'), name='y')), name='i') >>> b <Bus: i> <Index> x Frame y Frame <<U1> <object> >>> b.via_hashlib(include_name=False).sha3_512().hexdigest() 7e2a68f333a32d7f4c1b9415045b139f8fc7ff0a2af54f601fdaa042908a97293bc117def78c217148f70c66ebf0159c902c7ece42cb0f386cec925fb7939523
- Bus.via_hashlib(include_name, include_class, encoding).shake_128()
- via_hashlib
Interface for deriving cryptographic hashes from this container.
- InterfaceHashlib.shake_128()[source]
>>> b = sf.Bus.from_frames((sf.Frame(np.arange(6).reshape(3,2), index=('p', 'q', 'r'), columns=('a', 'b'), name='x'), sf.Frame((np.arange(6).reshape(3,2) % 2).astype(bool), index=('p', 'q', 'r'), columns=('c', 'd'), name='y')), name='i') >>> b <Bus: i> <Index> x Frame y Frame <<U1> <object> >>> b.via_hashlib(include_name=False).shake_128().hexdigest(8) 426a8470515bf557
- Bus.via_hashlib(include_name, include_class, encoding).shake_256()
- via_hashlib
Interface for deriving cryptographic hashes from this container.
- InterfaceHashlib.shake_256()[source]
>>> b = sf.Bus.from_frames((sf.Frame(np.arange(6).reshape(3,2), index=('p', 'q', 'r'), columns=('a', 'b'), name='x'), sf.Frame((np.arange(6).reshape(3,2) % 2).astype(bool), index=('p', 'q', 'r'), columns=('c', 'd'), name='y')), name='i') >>> b <Bus: i> <Index> x Frame y Frame <<U1> <object> >>> b.via_hashlib(include_name=False).shake_256().hexdigest(8) 4e9bb60a28c99c04
- Bus.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]
>>> b = sf.Bus.from_frames((sf.Frame(np.arange(6).reshape(3,2), index=('p', 'q', 'r'), columns=('a', 'b'), name='x'), sf.Frame((np.arange(6).reshape(3,2) % 2).astype(bool), index=('p', 'q', 'r'), columns=('c', 'd'), name='y')), name='i') >>> b <Bus: i> <Index> x Frame y Frame <<U1> <object> >>> b.via_hashlib(include_name=False).blake2b().hexdigest() c68cc4d9227be6e3268f0ffbca58095fe0eb5bab64a86b95bc4238b6917d4958b6c043ec9583db268209284aab6c0434b37c284587ee120d9ead7594c1c286ba
- Bus.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]
>>> b = sf.Bus.from_frames((sf.Frame(np.arange(6).reshape(3,2), index=('p', 'q', 'r'), columns=('a', 'b'), name='x'), sf.Frame((np.arange(6).reshape(3,2) % 2).astype(bool), index=('p', 'q', 'r'), columns=('c', 'd'), name='y')), name='i') >>> b <Bus: i> <Index> x Frame y Frame <<U1> <object> >>> b.via_hashlib(include_name=False).blake2s().hexdigest() fa228e6f239bc0e8968286bdc1c82749dec3605e8e6e86a731e6c0e8a5e2a2ac
Bus: Constructor | Exporter | Attribute | Method | Dictionary-Like | Display | Selector | Iterator | Accessor Hashlib | Accessor Type Clinic