A simple and easy to use file encryption program made using libsodium
nacrypt <input_file> -o <output_file> [-e|-d]## Encrypt
nacrypt plaintext.txt -o plaintext.txt.enc
## Decrypt
nacrypt plaintext.txt.enc -o plaintext_decrypted.txtInstall libsodium and libseccomp
Debian / Ubuntu: sudo apt install -y libsodium-dev libseccomp-dev
Arch & Derivatives: sudo pacman -S libsodium libseccomp
To build, simply run the makefile with:
makeor with clang CFI:
make CLANG_CFI=ynix build
gmake
Format the project according to .clang-format using ./format.sh or ./format.sh --check to dry run
Nacrypt applies a strict sandbox to itself before processing the input file. (see sandbox.c)
If this causes issues it can be disabled with the -DNO_SANDBOX CFLAG or allowed to fail with -DALLOW_SANDBOX_FAIL
make && sudo make installnix profile install .