Key derivation and asymmetric key generation utilities.
Provides:
- Key derivation: PBKDF2, Argon2id
- Key exchange: ECDH (X25519)
- Asymmetric: RSA key generation
Summary
Functions
Derives a key using Argon2id (requires optional argon2_elixir dependency).
Computes a shared secret from your private key and peer's public key.
Generates an X25519 key pair. Returns {private_key, public_key} (both raw binary).
Generates an RSA key pair (2048-bit). Returns {private_der, public_der}.
Derives a key using PBKDF2-HMAC-SHA256.
Functions
Derives a key using Argon2id (requires optional argon2_elixir dependency).
Computes a shared secret from your private key and peer's public key.
Generates an X25519 key pair. Returns {private_key, public_key} (both raw binary).
Generates an RSA key pair (2048-bit). Returns {private_der, public_der}.
Derives a key using PBKDF2-HMAC-SHA256.