Method | Description | |
---|---|---|
PgpEncryptionKeys ( string publicKeyPath, string privateKeyPath, string passPhrase ) : System |
Initializes a new instance of the EncryptionKeys class. Two keys are required to encrypt and sign data. Your private key and the recipients public key. The data is encrypted with the recipients public key and signed with your private key.
|
Method | Description | |
---|---|---|
GetFirstPublicKey ( |
||
GetFirstSecretKey ( |
Return the first key we can use to encrypt. Note: A file can contain multiple keys (stored in "key rings")
|
|
ReadPrivateKey ( string passPhrase ) : |
||
ReadPublicKey ( string publicKeyPath ) : |
||
ReadSecretKey ( string privateKeyPath ) : |
public PgpEncryptionKeys ( string publicKeyPath, string privateKeyPath, string passPhrase ) : System | ||
publicKeyPath | string | The key used to encrypt the data |
privateKeyPath | string | The key used to sign the data. |
passPhrase | string | The (your) password required to access the private key |
return | System |