Sending and receiving files in a plane text is vulnerable to attacks. So we can eaisly encrypt a file using this method in linux
For Encryption–
#openssl enc -aes-256-cbc -e -in <plain_text_file> \out <encrypted_file_name>
For Decryption—
#openssl enc -aes-256-cbc -d -in <encrypted_file_name> \-out <plain_text_file>
File will ask for the password (passphrase) so that unauthorised acces to this file can be prevented.
Enjoy secure sharing 🙂
Be the first to comment.