LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs > sunjayasri
User Name
Password

Notices

Rate this Entry

උබුන්ටු වල Encrypt And Decrypt කරන හැටි...

Posted 09-22-2013 at 10:00 AM by sunjayasri

කරන්න තියෙන්නේ මෙන්න මෙච්චරයි , මේ මුදෘකාංගය Install කරගන්න..

$ sudo apt-get install gnupg


ඊට පස්සෙ ඉතුරු ඔකොම වැඩ ටික Terminal තිය්න්නේ එකේ...

Encrypting a file in linux

To encrypt a single file, use command gpg as follows:
$ gpg -c filename

To encrypt myfinancial.info.txt file, type the command:
$ gpg -c myfinancial.info.txt

Sample output:

Enter passphrase:<YOUR-PASSWORD>
Repeat passphrase:<YOUR-PASSWORD>

This will create a myfinancial.info.txt.gpg file. Where,

-c : Encrypt with symmetric cipher using a passphrase. The default symmetric cipher used is CAST5, but may be chosen with the --cipher-algo option. This option may be combined with --sign (for a signed and symmetrically encrypted message), --encrypt (for a message that may be decrypted via a secret key or a passphrase), or --sign and --encrypt together (for a signed message that may be decrypted via a secret key or a passphrase).
Please note that if you ever forgot your password (passphrase), you cannot recover the data as it use very strong encryption.

Decrypt a file

To decrypt file use the gpg command as follow:
$ gpg myfinancial.info.txt.gpg
Posted in Uncategorized
Views 275 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 07:49 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration