Versions in this module Expand all Collapse all v1 v1.1.0 Aug 31, 2023 v1.0.0 Aug 29, 2023 Changes in this version + const AESKeyLength + const AESNonceLength + const MinimumPassword + const ScryptN + const ScryptP + const ScryptR + const ScryptSaltLength + type CipherBlock struct + Bytes []byte + Nonce [AESNonceLength]byte + func NewCipherBlock(bytes []byte, nonce []byte) (CipherBlock, error) + type Key struct + Key [AESKeyLength]byte + Salt [ScryptSaltLength]byte + func (k *Key) Decrypt(ciphertext CipherBlock) ([]byte, error) + func (k *Key) Encrypt(plaintext []byte) (CipherBlock, error) + func (k *Key) FromString(password string) error + func (k *Key) RederiveKey(password string, salt []byte) error