C# Class SSIS.Extensions.PGPTask.PgpEncryptionKeys

显示文件 Open project: ElanHasson/SSIS-Extensions Class Usage Examples

Public Methods

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.

Private Methods

Method Description
GetFirstPublicKey ( PgpPublicKeyRingBundle publicKeyRingBundle ) : PgpPublicKey
GetFirstSecretKey ( PgpSecretKeyRingBundle secretKeyRingBundle ) : PgpSecretKey

Return the first key we can use to encrypt. Note: A file can contain multiple keys (stored in "key rings")

ReadPrivateKey ( string passPhrase ) : PgpPrivateKey
ReadPublicKey ( string publicKeyPath ) : PgpPublicKey
ReadSecretKey ( string privateKeyPath ) : PgpSecretKey

Method Details

PgpEncryptionKeys() public method

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.
Public key not found. Private key not found. Missing password
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