Binary data

Module data

Bytes
The byte list data type.
bytes(a)
Create a byte list from a list of integers less than 256.
hash(a)
Cryptographic hash value (SHA3-256) of the byte list a.
use data: hash

h = hash("".encode("UTF-8"))
print(hex(h).chunks(4).map(|t| t.join()).join("\s"))

# a7ff c6f8 bf1e d766 51c1 4756 a061 d662
# f580 ff4d e43b 49fa 82d8 0a4b 80f8 434a
Type Bytes, a: Bytes
a.decode(encoding)
Decode an specific encoding. Available encodings: "UTF-8".
a.list()
Transform a into a list of integers less than 256.