A file encryption utility written in C using libsodium
Linux file encryption utility written in C using libsodium
libsodium-file-crypter version 1.0.0
This project was created using CLion
For now only Linux is supported
This program has been compiled and tested on Fedora 27
[root@localhost d3v]# uname -a
Linux localhost.localdomain 4.14.8-300.fc27.x86_64 #1 SMP Wed Dec 20 19:00:18 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Libsodium installation instructions from the official docs
tar -xvf LATEST.tar.gz
cd libsodium-stable/
./configure
make && make check
sudo make install
or execute make install
after switching with su
to rootldconfig
that creates the necessary links and cache to the most recent shared librariesOn Fedora 27
/usr/local/lib/
/usr/local/include/
Refer to official docs for installation HERE
./bootstrap
make
sudo make install
or execute make install
after switching with su
to rootdnf install cmake
after switching with su
to rootgit clone https://github.com/jpiechowka/libsodium-file-crypter.git
cd libsodium-file-crypter
cmake .
make
To see help message run with -?
or --help
options
Usage: libsodium-file-crypter [OPTION...] FILE PASSWORD
Linux file encryption utility written in C using libsodium
-d, --decrypt Decrypt the specified file. Specifying operation
mode is mandatory for program to run
-e, --encrypt Encrypt the specified file. Specifying operation
mode is mandatory for program to run
-f, --force Force overwrite of output file if it already
exists
-o, --output=FILE Specify output file instead of default:
output.crypt
-v, --verbose, --debug Increase verbosity - show debug messages
-?, --help Give this help list
--usage Give a short usage message
-V, --version Print program version
Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.
Report bugs to https://github.com/jpiechowka/libsodium-file-crypter/issues.
Run with --usage
option
Usage: libsodium-file-crypter [-defv?V] [-o FILE] [--decrypt] [--encrypt]
[--force] [--output=FILE] [--verbose] [--debug] [--help] [--usage]
[--version] FILE PASSWORD
super-secret-pass-123
as password./libsodium-file-crypter -v -e -o encrypted.txt plaintext.txt super-secret-pass-123
./libsodium-file-crypter -v -d -f -o plaintext.txt encrypted.txt super-secret-pass-123