C# 클래스 CryptoN.CryptoMonkey

파일 보기 프로젝트 열기: tamimsalem/CryptoN

공개 메소드들

메소드 설명
CryptoMonkey ( Key key, IV iv, PaddingMode paddingMode = PaddingMode.PKCS7, CipherMode cipherMode = CipherMode.CBC ) : System
Decrypt ( byte data ) : byte[]
DecryptFile ( string encryptedFilePath, string plainOutputPath ) : void
DecryptStream ( Stream encrypted, Stream plain, bool disposeWhenDone ) : void
DecryptString ( string base64String ) : string
Encrypt ( byte data ) : byte[]
EncryptFile ( string plainFilePath, string encryptedOutputPath ) : void
EncryptStream ( Stream plain, Stream encrypted, bool disposeWhenDone ) : void
EncryptString ( string value ) : string
GenerateRandomIv ( AllowedBlockSizes blockSize ) : IV
GenerateRandomKey ( AllowedKeySizes keySize ) : Key

비공개 메소드들

메소드 설명
DecryptFromBytes ( byte encryptedData ) : byte[]
EncryptToBytes ( byte data ) : byte[]
GetAlgorithmObject ( ) : RijndaelManaged
GetDecryptionStrean ( Stream data ) : CryptoStream
GetEncryptingStream ( Stream data ) : CryptoStream

메소드 상세

CryptoMonkey() 공개 메소드

public CryptoMonkey ( Key key, IV iv, PaddingMode paddingMode = PaddingMode.PKCS7, CipherMode cipherMode = CipherMode.CBC ) : System
key Key
iv IV
paddingMode PaddingMode
cipherMode CipherMode
리턴 System

Decrypt() 공개 메소드

public Decrypt ( byte data ) : byte[]
data byte
리턴 byte[]

DecryptFile() 공개 메소드

public DecryptFile ( string encryptedFilePath, string plainOutputPath ) : void
encryptedFilePath string
plainOutputPath string
리턴 void

DecryptStream() 공개 메소드

public DecryptStream ( Stream encrypted, Stream plain, bool disposeWhenDone ) : void
encrypted Stream
plain Stream
disposeWhenDone bool
리턴 void

DecryptString() 공개 메소드

public DecryptString ( string base64String ) : string
base64String string
리턴 string

Encrypt() 공개 메소드

public Encrypt ( byte data ) : byte[]
data byte
리턴 byte[]

EncryptFile() 공개 메소드

public EncryptFile ( string plainFilePath, string encryptedOutputPath ) : void
plainFilePath string
encryptedOutputPath string
리턴 void

EncryptStream() 공개 메소드

public EncryptStream ( Stream plain, Stream encrypted, bool disposeWhenDone ) : void
plain Stream
encrypted Stream
disposeWhenDone bool
리턴 void

EncryptString() 공개 메소드

public EncryptString ( string value ) : string
value string
리턴 string

GenerateRandomIv() 공개 정적인 메소드

public static GenerateRandomIv ( AllowedBlockSizes blockSize ) : IV
blockSize AllowedBlockSizes
리턴 IV

GenerateRandomKey() 공개 정적인 메소드

public static GenerateRandomKey ( AllowedKeySizes keySize ) : Key
keySize AllowedKeySizes
리턴 Key