Skip to main contentModule crypto
Source - GenericArrayExt
- Implements the
generic_array version 1.2
len()
method for the older generic_array version currently(?) used by
rust crypto (e.g. [aead]).
- random_32_bytes
- random_alphanumeric
- Generates a random 22 character alphanumeric string (
[a-zA-Z0-9]{22}),
having > 128 bits of randomness. - seal
- Encodes and encrypts the given
obj with additional associated data (or b"" if None).
Use unseal to revert. - unseal
- Reverse of the
seal operation. - url_seal
- Like
seal, but returns an urlsafe base64 encoded string.
and returns it as urlsafe base64 string. Use url_unseal to revert. - url_unseal
- Reverse of the
url_seal operation.
- SealingKey
- Key used by
seal and co.