Friday, February 01, 2008

Quick Symmetric Encryption / Decryption


To encrypt:

gpg -c < cleartext > ciphertext

-- This will prompt for a passphrase.

To decrypt:

gpg < ciphertext > cleartext

-- This will prompt for a passphrase.
-- Use the same passphrase as was used for the encryption.