verify.py 205 B

12345678910
  1. import OpenPGP
  2. import OpenPGP.Crypto
  3. wkey = OpenPGP.Message.parse(open('key').read())[0]
  4. m = OpenPGP.Message.parse(open('t.php.gpg').read())
  5. verify = OpenPGP.Crypto.Wrapper(wkey)
  6. print verify.verify(m)