Linux File Encryption With GPG On Linux
Page 1 of 1
Linux File Encryption With GPG On Linux
Install for older Mint versions, earlier than Mint 18.1, after Mint 17 it is built in and wont need installing!
- Code:
sudo apt-get install -y gpg
File Enc
- Code:
#!/bin/bash
# Usage: ./Enc.sh
echo "Welcome, I am ready to encrypt a file/folder for you"
echo "currently I have a limitation, Place me to thh same folder, where a file to be
encrypted is present"
echo "Enter the Exact File Name with extension"
read file;
gpg -c $file # -e
echo "I have encrypted the file successfully..."
echo "Now I will be removing the original file"
rm -rf $file
File Dec
- Code:
#!/bin/bash
# Usage: ./Dec.sh
echo "Welcome, I am ready to encrypt a file/folder for you"
echo "currently I have a limitation, Place me to thh same folder, where a file to be
encrypted is present"
echo "Enter the Exact File Name with extension"
read file;
gpg --output revealed --decrypt $file
echo "I have Decrypted the file successfully..."
# rm -rf $file
file revealed
More about gpg Encryption
gnupg.org/gph/en/manual/x110.html
Similar topics
» file permissions chroot and chmod in linux
» How to fix samba in linux file missing config file error
» File Recovery Using Linux
» Find file or dir on linux with terminal
» Editing Rythmbox Radio Playlist File On Linux
» How to fix samba in linux file missing config file error
» File Recovery Using Linux
» Find file or dir on linux with terminal
» Editing Rythmbox Radio Playlist File On Linux
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum