mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
py continued
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user