py continued

This commit is contained in:
TLINDEN
2014-12-14 18:06:45 +01:00
parent 7d76d41944
commit 5f13d5d810
6 changed files with 194 additions and 44 deletions

View File

@@ -1,7 +1,18 @@
#!/usr/local/bin/python
from pypcp import *
from pprint import pprint
sk = Key("tom", "me@there")
sk.dump()
encoded = open("../../tests/key-bobby-sec", "r").read()
sk = Key(encoded=encoded, passphrase="b")
sk.dump()
p = open("../../tests/key-bobby-pub", "r").read()
pk = PublicKey(encoded=p)
pk.dump()
pprint(pk.masterpub)