https://github.com/slaveofcode/bash-openssl-encrypt-decrypt
Symmetric-key encryption & decription file using openssl
https://github.com/slaveofcode/bash-openssl-encrypt-decrypt
bash bash-script decryption encryption openssl
Last synced: 8 months ago
JSON representation
Symmetric-key encryption & decription file using openssl
- Host: GitHub
- URL: https://github.com/slaveofcode/bash-openssl-encrypt-decrypt
- Owner: slaveofcode
- License: mit
- Created: 2019-07-12T08:41:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-12T10:10:36.000Z (over 6 years ago)
- Last Synced: 2025-01-20T15:26:07.272Z (10 months ago)
- Topics: bash, bash-script, decryption, encryption, openssl
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bash Encrypt-Decrpyt OpenSSL
Simple encryption-decription method using Symmetric-key encryption by openssl
## Encrypt Command
> ./generate.sh ~/.ssh/id_rsa
It will asking passphrase to set with the encryption process
> Input passphrase for encypt: < type the passphrase >
The encrypted file will saved on `files` directory.
## Decrypt Command
### On the fly reading
By running the command above, the result of decription value will be shown on the terminal.
> ./read.sh ./files/someFileName.dat
It will ask for the passphrase
> Input passphrase read the content: < type the passphrase >
### Read with inline passphrase
> ./read.sh ./files/someFileName.dat thepasscode
### Result on File
You can also flush the result into file
> ./read.sh ./files/someFileName.dat > thefile.txt
# License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details