Versions in this module Expand all Collapse all v0 v0.4.0 Apr 4, 2024 v0.3.0 Feb 28, 2024 Changes in this version + var ErrEmptyPassphrase = errors.New("passphrase cannot be empty") + var ErrMsgDecryptingValue = "error decrypting data (incorrect passphrase?)" + func Decrypt(passphrase string, data string) ([]byte, error) + func Encrypt(passphrase string, plaintext []byte) (string, error)