Documentation ¶
Index ¶
- func Decrypt(encrypted []byte, key []byte) (plaintext []byte, err error)
- func DecryptChaCha(encryptedMsg []byte, aead cipher.AEAD) (encrypted []byte, err error)
- func Encrypt(plaintext []byte, key []byte) (encrypted []byte, err error)
- func EncryptChaCha(plaintext []byte, aead cipher.AEAD) (encrypted []byte, err error)
- func New(passphrase []byte, usersalt []byte) (key []byte, salt []byte, err error)
- func NewArgon2(passphrase []byte, usersalt []byte) (aead cipher.AEAD, salt []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptChaCha ¶
DecryptChaCha will encrypt ChaCha20-Poly1305 using the pre-generated key https://pkg.go.dev/golang.org/x/crypto/chacha20poly1305
func EncryptChaCha ¶
EncryptChaCha will encrypt ChaCha20-Poly1305 using the pre-generated key https://pkg.go.dev/golang.org/x/crypto/chacha20poly1305
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.