C# 클래스 SPL.Crypto.PgpEncrypt

Wrapper around Bouncy Castle OpenPGP library. Bouncy documentation can be found here: http://www.bouncycastle.org/docs/pgdocs1.6/index.html Code from: http://blogs.microsoft.co.il/blogs/kim/archive/2009/01/23/pgp-zip-encrypted-files-with-c.aspx with some very minor changes.
파일 보기 프로젝트 열기: sledwith/PGP-Decryption-With-C-Sharp

공개 메소드들

메소드 설명
EncryptAndSign ( Stream outputStream, FileInfo unencryptedFileInfo ) : void

Encrypt and sign the file pointed to by unencryptedFileInfo and write the encrypted content to outputStream.

PgpEncrypt ( PgpEncryptionKeys encryptionKeys ) : System

Instantiate a new PgpEncrypt class with initialized PgpEncryptionKeys.

비공개 메소드들

메소드 설명
chainCompressedOut ( Stream encryptedOut ) : Stream
chainEncryptedOut ( Stream outputStream ) : Stream
chainLiteralOut ( Stream compressedOut, FileInfo file ) : Stream
initSignatureGenerator ( Stream compressedOut ) : PgpSignatureGenerator
writeOutputAndSign ( Stream compressedOut, Stream literalOut, FileStream inputFile, PgpSignatureGenerator signatureGenerator ) : void

메소드 상세

EncryptAndSign() 공개 메소드

Encrypt and sign the file pointed to by unencryptedFileInfo and write the encrypted content to outputStream.
public EncryptAndSign ( Stream outputStream, FileInfo unencryptedFileInfo ) : void
outputStream Stream /// The stream that will contain the encrypted data when this method returns. ///
unencryptedFileInfo System.IO.FileInfo
리턴 void

PgpEncrypt() 공개 메소드

Instantiate a new PgpEncrypt class with initialized PgpEncryptionKeys.
encryptionKeys is null
public PgpEncrypt ( PgpEncryptionKeys encryptionKeys ) : System
encryptionKeys PgpEncryptionKeys
리턴 System