PrivateKey -- Private key class
PrivateKey instances export the following functions:
- 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.
- Tests the private key against the public key passed in. Returns
True if the keys match, False if they do not.
- 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 "".
- Writes the private key file back out to disk. Call after setting the
password with SetPassword().