Add utilities for random nonces/salts and encoding.
Review Request #15173 — Created July 16, 2026 and submitted
This introduces new
cryptozoology.utils.encodingand
cryptozoology.utils.randommodules.
encodingprovides utilities for encoding to/decoding from URL-safe
Base64 with padding removed and type checking agdded. It also provides
encoding for length-prefixed strings, which is useful in AAD and HKDF
information.
randomprovides types and generation for nonces and salts of arbitrary
or common sizes.
Unit tests pass.
Made use of these in other changes.
Review request changed
- Change Summary:
-
- Removed an unused import.
- Added the missing
utils/__init__.pymodule.
- Commits:
-
Summary ID 60eb6b41097d6044ad48b00193a688b58cb6dcd3 d0d17151f6f670421c80ea9db5d64f2f734aa3ca
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.