This is a simple command-line tool for encrypting and decrypting files using a
password. It is built using Deno and the cliffy
library.
-
Install Deno by following the instructions at deno.land.
-
Clone this repository or download the script:
git clone <repository_url>
- Navigate to the directory containing the script:
cd <repository_directory>
- Compile the script
deno compile --allow-read --allow-write --allow-run main.ts
The Encryption CLI Tool allows you to encrypt and decrypt files with a password.
To encrypt a file, use the -e
or --encrypt
option followed by the file path
and password:
encryption-cli-tool -e ~/path/to/file.png -p password
The encrypted file will be saved with the prefix encrypted- added to the original file name.
To decrypt a file, use the -d
or --decrypt
option followed by the file path
and password:
encryption-cli-tool -d ~/path/to/file.png -p password
The decrypted file will be saved with the prefix decrypted- and the original file name.