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.
DeriveKeyStrength applies Scrypt using the given work 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.

# Constants

KeySize contains the size (in bytes) of a NaCl secretbox key.
KeySize contains the size (in bytes) of a NaCl secretbox key.
ScryptInteractive mode uses N=2^14, r=8, p=1.
ScryptStandard mode uses N=2^20, r=8, p=2.

# Type aliases

ScryptMode represents the work factor to be used for passphrases.