Skip to content

basicallygit/nacrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nacrypt

A simple and easy to use file encryption program made using libsodium

Usage

nacrypt <input_file> -o <output_file> [-e|-d]

Example

## Encrypt
nacrypt plaintext.txt -o plaintext.txt.enc

## Decrypt
nacrypt plaintext.txt.enc -o plaintext_decrypted.txt

Building

Install 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:

make

or with clang CFI:

make CLANG_CFI=y

Building with Nix from flake

nix build

FreeBSD / OpenBSD

gmake

Formatting

Format the project according to .clang-format using ./format.sh or ./format.sh --check to dry run

Sandbox

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

Installation

make && sudo make install

Nix

nix profile install .

About

A simple and easy to use file encryption program

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published