Results 1 to 1 of 1
Thread: PGP GPG Encryption
Jun 19, 2008, 04:58 #1
- Join Date
- Jun 2008
- 0 Post(s)
- 0 Thread(s)
PGP GPG Encryption
Im new to PGP or GPG (GnuPG), can anyone there help me with my problem.
This is the situation. I've generated a key pair from the OpenPGP Section in my cpanel and there was a public and private key generated, i used the command:
$command = 'gpg -e -r firstname.lastname@example.org sample.txt';
and it works fine, it provides me an encrypted file sample.txt.gpg.
But when I imported a separate public key, there appears in the public key section something like this:
A8E96BFE [1024D] Sample Name (email@example.com)
And from this, i replaced the gpg command to:
$command = 'gpg -e -r firstname.lastname@example.org sample.txt';
and from this case, it doesn't encrypt the file anymore. Is there any other code or gpg command I could use with the imported public key to properly encrypt the file.