package
0.0.0-20240829150431-63fc2867930b
Repository: https://github.com/kisom/cryptutils.git
Documentation: pkg.go.dev
# Functions
Decrypt extracts the nonce from the ciphertext, and attempts to decrypt with NaCl's secretbox.
DecryptFile recovers a secured blob from a file, returning a byte slice for parsing by the caller.
DeriveKey applies Scrypt with very strong parameters to generate an encryption key from a passphrase and salt.
Encrypt generates a random nonce and encrypts the input using NaCl's secretbox package.
EncryptFile securely stores the encoded blob under the filename.
GenerateKey returns a randomly generated secretbox key.