A small and simple tool to encrypt small files with with libsodium.
Install for local user with composer:
composer global require sandfoxme/encryptor
Install globally by downloading prebuilt phar:
sudo wget https://github.com/sandfoxme/php-encryptor/releases/latest/download/encryptor.phar -O /usr/local/bin/encryptor sudo chmod +x /usr/local/bin/encryptor
encryptor encrypt filename.txt
encryptor decrypt filename.txt.encrypted
You will be interactively asked for the password
Read full documentation here: https://sandfox.dev/php/encryptor.html
The library is available as open source under the terms of the MIT License.