Encrypting data
Instructions for simple password based encryption of files and folders
Encrypting/decrypting files and folders ...
... in a desktop enviroment
To encrypt data:
- Open Konqueror
- Select the file or folder you wish to encrypt
- From the context menu choose "Actions>Encrypt File" or "Actions>Archive and Encrypt Folder"
- In the dialog window make all options visible and choose "Symmetrical Encryption"
- Enter a password twice
- A new file with the suffix "asc" (when encrypting a file) or "zip.gpg" (when encrypting a folder) will be created. This contains your encrypted data
NB! The original file/folder will still be available, so delete it if necessary.
To decrypt data:
In Konqueror simply choose "Open with Kgpg" from the context menu and enter the password.
... on a command line
To encrypt data with a passphrase:
gpg-zip -c -o filename.gpg data
where filename.gpg is the name of the encrypted file and data is the file or directory you wish to encrypt.
To decrypt data:
gpg-zip -d filename.gpg
You will be prompted for the passphrase you provided during encryption.
Encrypting with keys
Consult Kgpg or gpg manual to learn how to use private/public keys to encrypt your data.
Crypting from command line
Crypting from command line
Crypting from command line
cfs
a better way would be to use cfs (crypto file system; uses transparent de/enctyption) for encrypted storage of files (no unencrypted files appear), and gpg only for transfering files to other computers (email, cdrom, ...).
deleting sensitive data
deleting (
rm
) sensitive files is insecure, you should at leastwipe
them.