phrase to unlock the secret key for user: 'Khan Muhammad Tauseef (IK2206)'
1024-bit ELG key, ID 9D6213BB, created 2009-11-21 (main key ID 96DD7072)
gpg: encrypted with 1024-bit ELG key, ID 9D6213BB, created 2009-11-21
GPG tells us that the message is encrypted with our key so it requires the passphrase to access our secret key which is needed to decrypt the message. Also if the message is not allowed to be decrypted by our key i.e. it is encrypted with some other key then we are unable to decrypt the message and GPG will give decryption failed.
E:\step 9>gpg --armor --output test.asc --decrypt part5.txt
gpg: encrypted with 2048-bit ELG key, ID B05617AA, created 2009-10-19
'Internet Security and Privacy (Course key)'
gpg: decryption failed: No secret key
·如何利用GPG对电子邮件加密—— How to encrypt e-mails with GPG
Then we are required to encrypt the messages by arranging in a block form first. The command used to encrypt the message is -encrypt. GPG will use our secret key to encrypt the messages.
E:\step 9>gpg --armor --output 4step9signed.asc --encrypt 4signstep9
You did not specify a user ID. (you may use '-r')
Current recipients:
Enter the user ID. End with an empty line:
Current recipients:
1024g/9D6213BB 2009-11-21 'Muhammad Tauseef Khan (IK2206) '
Enter the user ID. End with an empty line:
gpg: B05617AA: There is no assurance this key belongs to the named user
pub 2048g/B05617AA 2009-10-19 Internet Security and Privacy
Primary key fingerprint: 00E2 5F48 4127 488C 51EC 08DE B367 D505 6C14 565D
Subkey fingerprint: 332C 0FD9 146B 75A2 7D2D 06D9 D843 960F B056 17AA
It is NOT certain that the key belongs to the person named
in the user ID. If you *really* know what you are doing,
you may answer the next question with yes.
Use this key anyway? (y/N) y
Current recipients:
2048g/B05617AA 2009-10-19 'Internet Security and Privacy '
1024g/9D6213BB 2009-11-21 'Muhammad Tauseef Khan (IK2206) '
Enter the user ID. End with an empty line:
· Examples of encrypted messages
Following is an example of an encrypted message which is decrypted by using -decrypt command. GPG tells us the information about the keys from which the message was encrypted.
E:\step 9>gpg --output 11 --decrypt part11.txt
You need a passphrase to unlock the secret key for user: 'Khan Muhammad Tauseef (IK2206)'
1024-bit ELG key, ID 9D6213BB, created 2009-11-21 (main key ID 96DD7072)
gpg: encrypted with 2048-bit ELG key, ID B05617AA, created 2009-10-19
'Internet Security and Privacy (Course key)'
gpg: encrypted with 1024-bit ELG key, ID 9D6213BB, created 2009-11-21
'Khan Muhammad Tauseef (IK2206)'
The decrypted output produced by this command is “2617fe83f34901ba48fe03a9a1aceba241f0077f” which is derived from the following encrypted message.
-----BEGIN PGP MESSAGE-----
Version: GnuPG v2.0.9 (GNU/Linux)
hQEOA94pXdqdYhO7EAQAhmR9JveRtnzhY7tna8FIAutZXl2YaMp9JGtd7g6xZzUQ
2y/YHC4z+Yq+
本论文由英语论文网提供整理,提供论文代写,英语论文代写,代写论文,代写英语论文,代写留学生论文,代写英文论文,留学生论文代写相关核心关键词搜索。