[deyu1@kvm8 ~]$ gpg --clearsign demo.txt You need a passphrase to unlock the secret key for user: "abc123 (ABC) <abc123@csie.cyut.edu.tw>" 2048-bit RSA key, ID A98B198E, created 2014-05-26
[deyu1@kvm8 ~]$ cat demo.txt.asc -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 abc123 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iQEcBAEBAgAGBQJTgsY1AAoJEGKwGRGpixmOF9MIAKCgWrK7sgqJqUsMOutKIOQT aQXER43zTXQPUHQgB88q8UX2HdObfNUgG70oSpqLhNEloTYEF66sTVQ6143NDCR1 NwjdK3WNH9KhBHhy+TyYKx7vOWhyugBI/ePEPzkrbqrMiMOiAB+S4bWsFCGVPTOb iiyeUq71AdXLveXmfS5qQzR3jGaQy+K9WDEnVVDhMoz2Sv9BbNBkVahs4gMSO9+y aBu4L4h4bBcjesQV42IebUjNwDkl76VxkL8m0XXlip8u9pwELjsl+dfCxS//9qK0 oc0duZIGnqboZqI75v9gHqhRsmxUlnWs9H67m1X7inb9iy7xqtPEHGBat0tRaB8= =Y+e7 -----END PGP SIGNATURE-----
[deyu1@kvm8 ~]$ gpg --verify demo.txt.asc gpg: Signature made Mon 26 May 2014 12:42:29 PM CST using RSA key ID A98B198E gpg: Good signature from "abc123 (ABC) <abc123@csie.cyut.edu.tw>"
[deyu1@kvm8 ~]$ gpg --sign demo.txt You need a passphrase to unlock the secret key for user: "abc123 (ABC) <abc123@csie.cyut.edu.tw>" 2048-bit RSA key, ID A98B198E, created 2014-05-26
[deyu1@kvm8 ~]$ cat demo.txt.gpg .............................
[deyu1@kvm8 ~]$ gpg --verify demo.txt.gpg gpg: Signature made Mon 26 May 2014 12:51:59 PM CST using RSA key ID A98B198E gpg: Good signature from "abc123 (ABC) <abc123@csie.cyut.edu.tw>"