Wednesday, June 11, 2008

Encrypting a file in linux

To encrypt single file, use command gpg as follows:

$ gpg -c filename

To encrypt file, type the command:

$ gpg -c


Enter passphrase:
Repeat passphrase:

This will create a file.

Option: -c : Encrypt with symmetric cipher.

Caution if you ever forgot your password aka passphrase, you cannot recover the data as it use very strong encryption.

Task: decrypt file

To decrypt file use gpg command:

$ gpg


gpg: CAST5 encrypted data
Enter passphrase:

Decrypt file and write output to file you can run command:

$ gpg –o

Remember if file extension is .asc, it is a ASCII encrypted file and if file extension is .gpg, it is a binary encrypted file.

No comments:

Removing audio noise from a video

The basic steps are to extract the audio, remove noise, and then re-insert the noise-free audio back into the video wrapper. Step I: Ext...