Quick & Easy Old Usful Encrypt & Decrypt Methods for linux
Page 1 of 1
Quick & Easy Old Usful Encrypt & Decrypt Methods for linux
load files as described after making them executable
- Code:
sudo chmod +x *.sh
- Code:
#!/bin/bash
#
#
#
# Usage: ./quick_enc_function.sh file.ext
#
#
#
myvar="$1"
#
#
encrypt(){
gpg -c -o- $1 # encrypts data to stdout
}
encrypt "$myvar" > private.dat
Decryption
- Code:
#!/bin/bash
#
# Usage: ./quick_dec_function.sh private.dat
#
#
#
myvar="$1"
gpg "$1" > errors.txt
Similar topics
» Quick and easy install for KDE for Linux Mint 17
» Quick & Easy Project Deployment Example
» Quick easy private chat room
» Encrypt & Decrypt linux files with a simple script
» Quick Scan Linux Script Security TUT
» Quick & Easy Project Deployment Example
» Quick easy private chat room
» Encrypt & Decrypt linux files with a simple script
» Quick Scan Linux Script Security TUT
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|