Versions in this module Expand all Collapse all v0 v0.4.1 Feb 18, 2026 v0.4.0 Feb 18, 2026 Changes in this version + const MinPassphraseLen + const SaltSize + func Decrypt[T interface{ ... }](passphrase string, blob []byte) (T, error) + func Encrypt[T interface{ ... }](passphrase string, plaintext T) ([]byte, error) + func GenerateSalt() ([]byte, error) + func ValidatePassphrase(passphrase string) error + type Key []byte + func DeriveKey(passphrase string, salt []byte) Key + func (k Key) Decrypt(ciphertext []byte) ([]byte, error) + func (k Key) Encrypt(plaintext []byte) ([]byte, error)