C# 클래스 SSIS.Extensions.PGPTask.PGPEncryptDecrypt

파일 보기 프로젝트 열기: ElanHasson/SSIS-Extensions

공개 메소드들

메소드 설명
Decrypt ( Stream inputStream, Stream privateKeyStream, string passPhrase, string outputFile ) : void
Decrypt ( string inputfile, string privateKeyFile, string passPhrase, string outputFile ) : void

Decrypts the specified inputfile.

EncryptAndSign ( string inputFile, string outputFile, string publicKeyFile, string privateKeyFile, string passPhrase, bool armor ) : void

Encrypt and sign the file pointed to by unencryptedFileInfo.

EncryptFile ( string inputFile, string outputFile, string publicKeyFile, bool armor, bool withIntegrityCheck ) : void

Encrypts the file.

비공개 메소드들

메소드 설명
ChainCompressedOut ( Stream encryptedOut ) : Stream
ChainEncryptedOut ( Stream outputStream, PgpEncryptionKeys m_encryptionKeys ) : Stream
ChainLiteralOut ( Stream compressedOut, FileInfo file ) : Stream
FindSecretKey ( PgpSecretKeyRingBundle pgpSec, long keyId, char pass ) : PgpPrivateKey

Search a secret key ring collection for a secret key corresponding to keyId if it exists.

InitSignatureGenerator ( Stream compressedOut, PgpEncryptionKeys m_encryptionKeys ) : PgpSignatureGenerator
OutputEncrypted ( string inputFile, Stream outputStream, PgpEncryptionKeys encryptionKeys ) : void

Outputs the encrypted.

ReadPublicKey ( Stream inputStream ) : PgpPublicKey

A simple routine that opens a key ring file and loads the first available key suitable for encryption.

WriteOutputAndSign ( Stream compressedOut, Stream literalOut, FileStream inputFile, PgpSignatureGenerator signatureGenerator ) : void

Writes the output and sign.

메소드 상세

Decrypt() 공개 정적인 메소드

public static Decrypt ( Stream inputStream, Stream privateKeyStream, string passPhrase, string outputFile ) : void
inputStream Stream
privateKeyStream Stream
passPhrase string
outputFile string
리턴 void

Decrypt() 공개 정적인 메소드

Decrypts the specified inputfile.
Invalid Output file path.
public static Decrypt ( string inputfile, string privateKeyFile, string passPhrase, string outputFile ) : void
inputfile string The inputfile.
privateKeyFile string The private key file.
passPhrase string The pass phrase.
outputFile string The output file.
리턴 void

EncryptAndSign() 공개 정적인 메소드

Encrypt and sign the file pointed to by unencryptedFileInfo.
/// Invalid Pass Phrase. /// or /// Encryption Key not found.
public static EncryptAndSign ( string inputFile, string outputFile, string publicKeyFile, string privateKeyFile, string passPhrase, bool armor ) : void
inputFile string The input file.
outputFile string The output file.
publicKeyFile string The public key file.
privateKeyFile string The private key file.
passPhrase string The pass phrase.
armor bool if set to true [armor].
리턴 void

EncryptFile() 공개 정적인 메소드

Encrypts the file.
public static EncryptFile ( string inputFile, string outputFile, string publicKeyFile, bool armor, bool withIntegrityCheck ) : void
inputFile string The input file.
outputFile string The output file.
publicKeyFile string The public key file.
armor bool if set to true [armor].
withIntegrityCheck bool if set to true [with integrity check].
리턴 void