doublenc
doublenc is a command-line utility designed for encrypting and decrypting files. It utilizes the NaCl (Networking and Cryptography library) library, specifically the `secretbox` primitive, to provide authenticated encryption. This means that both the confidentiality and integrity of the data are protected. When encrypting a file, doublenc generates a random nonce and prepends it to the ciphertext. During decryption, this nonce is used to verify that the ciphertext has not been tampered with.
The primary use case for doublenc is to securely share sensitive files. A user can encrypt a