Encryption of files.
Hi All,
I have quick question, I need to encrypt file send to customers ftp server. I will use sftp and I know it does encryption already. So is there any other ways to do the encryptions I can use.
Thanks in advance .
Responses
Hi,
You can use gpg for that. The simplest way is to use a password, but it also lets you encrypt files using pairs of public and private keys (see gpg(1)). To encrypt a single file with a password, run:
gpg -c file.txt
It will ask for a password, which can then be used to decrypt the file by running:
gpg file.txt.gpg
Yes, in essence, that's the process. The other party generates a pair of keys: a public one and a private one. They provide you with the public one, which you use to encrypt the data, and they use their private key to decrypt the data.
When encrypting multiple files, you can either encrypt an archive, or use the --multifile option of gpg.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
