ffr_crypto library
Safe high-level cryptographic APIs backed by the package's Rust library.
This is the stable core entrypoint. Advanced compatibility primitives and typed workflows are available through separate explicit package imports.
Classes
- AesGcm
- Advanced Encryption Standard (AES) in Galois/Counter Mode (GCM).
- Argon2
- Argon2 password hashing and key derivation function.
- ChaCha20Poly1305
- CryptoHash
- CryptoHasher
- CryptoRandom
- Ed25519
- Ed25519KeyPair
- Hkdf
- HMAC-based Extract-and-Expand Key Derivation Function (HKDF).
- HybridEncryption
- Pbkdf2
- Password-Based Key Derivation Function 2 (PBKDF2).
- Rsa
- RsaKey
- RsaKeyPair
- RsaPrivateKey
- RsaPublicKey
- X25519
- X25519KeyPair
Enums
- Argon2Variant
- Argon2 key derivation function variant (Argon2d, Argon2i, Argon2id).
- HashAlgorithm
Exceptions / Errors
- CryptoException
- Base exception class for all cryptographic failures.
- DecryptionException
- EncryptionException
- GenericCryptoException
- InvalidInputException
- InvalidKeyException
- SigningException
- VerificationException