C# 클래스 ManyMonkeys.Cryptography.Twofish

Summary description for Twofish encryption algorithm of which more information can be found at http://www.counterpane.com/twofish.html. This is based on the MS cryptographic framework and can therefore be used in place of the RijndaelManaged classes provided by MS in System.Security.Cryptography and the other related classes
상속: System.Security.Cryptography.SymmetricAlgorithm
파일 보기 프로젝트 열기: hdneo/mxo-hd 1 사용 예제들

공개 메소드들

메소드 설명
CreateDecryptor ( byte key, byte iv ) : ICryptoTransform

Creates an object that supports ICryptoTransform that can be used to decrypt data using the Twofish encryption algorithm.

CreateEncryptor ( byte key, byte iv ) : ICryptoTransform

Creates an object that supports ICryptoTransform that can be used to encrypt data using the Twofish encryption algorithm.

GenerateIV ( ) : void

Generates a random initialization Vector (IV).

GenerateKey ( ) : void

Generates a random Key. This is only really useful in testing scenarios.

Twofish ( ) : System

This is the Twofish constructor.

메소드 상세

CreateDecryptor() 공개 메소드

Creates an object that supports ICryptoTransform that can be used to decrypt data using the Twofish encryption algorithm.
public CreateDecryptor ( byte key, byte iv ) : ICryptoTransform
key byte A byte array that contains a key. The length of this key should be equal to the KeySize property
iv byte A byte array that contains an initialization vector. The length of this IV should be equal to the BlockSize property
리턴 ICryptoTransform

CreateEncryptor() 공개 메소드

Creates an object that supports ICryptoTransform that can be used to encrypt data using the Twofish encryption algorithm.
public CreateEncryptor ( byte key, byte iv ) : ICryptoTransform
key byte A byte array that contains a key. The length of this key should be equal to the KeySize property
iv byte A byte array that contains an initialization vector. The length of this IV should be equal to the BlockSize property
리턴 ICryptoTransform

GenerateIV() 공개 메소드

Generates a random initialization Vector (IV).
public GenerateIV ( ) : void
리턴 void

GenerateKey() 공개 메소드

Generates a random Key. This is only really useful in testing scenarios.
public GenerateKey ( ) : void
리턴 void

Twofish() 공개 메소드

This is the Twofish constructor.
public Twofish ( ) : System
리턴 System