Versions in this module Expand all Collapse all v1 v1.0.0 May 6, 2026 Changes in this version + const NONCE_SIZE + const PASSWORD_KEY_SIZE + const PBKDF2_ITERATIONS + const SALT_SIZE + type Ciphertext []byte + func (ct Ciphertext) Nonce() []byte + func (ct Ciphertext) Text() []byte + type Crypt struct + func LoadFromPassword(password string, salt []byte) Crypt + func New(key []byte) (Crypt, error) + func NewFromPassword(password string) (Crypt, []byte) + func (c Crypt) Decrypt(ct Ciphertext) ([]byte, error) + func (c Crypt) Encrypt(plaintext []byte) Ciphertext v1.0.0-rc1 May 6, 2026