Project Python SourceForge
Introduction
Legal Notes
Suitability
 
Setup
Download
Installation
 
How to
Key Generation
Signing a Document
Testing a Document
Trust Relationships
 
Documentation
TrustedPickle
ModuleObject
PrivateKey
PublicKey
PublicKeyFile
Signature
TPickle
TrustRelationship

PrivateKey -- Private key class

PrivateKey instances export the following functions:

Read()
Reads the contents of the private key file. Call this member after instantiation. Call Test() after Read() to make sure the key was read properly.
Test(Public)
Tests the private key against the public key passed in. Returns True if the keys match, False if they do not.
SetPassword([Password])
Changes the password on a PrivateKey that has been previously Read(). Call Write() after changing the password to save the modified key file. Password defaults to "".
Write()
Writes the private key file back out to disk. Call after setting the password with SetPassword().