C# 클래스 SPL.Crypto.PgpEncryptionKeys

파일 보기 프로젝트 열기: sledwith/PGP-Decryption-With-C-Sharp 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

PgpEncryptionKeys() 공개 메소드

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
리턴 System