C# 클래스 Brunet.Security.SymmetricEncryption

This wraps SymmetricAlgorithm to be better supported for lossy communication. This class is not thread-safe.
파일 보기 프로젝트 열기: johnynek/brunet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
BlockSizeByte int

공개 메소드들

메소드 설명
Clear ( ) : void

When we're done using this, it is safest to clear all security bits from memory. That's what this does.

DecryptData ( byte EncryptedData ) : byte[]

Takes in a byte array and returns the data in a unencrypted format.

EncryptData ( byte UnencryptedData ) : byte[]

Takes in an unencrypted byte array and returns the encrypted form.

SymmetricEncryption ( SymmetricAlgorithm Algorithm ) : Brunet

Creates a new SymmetricEncryption handler for the passed in SymmetricAlgorithm.

메소드 상세

Clear() 공개 메소드

When we're done using this, it is safest to clear all security bits from memory. That's what this does.
public Clear ( ) : void
리턴 void

DecryptData() 공개 메소드

Takes in a byte array and returns the data in a unencrypted format.
public DecryptData ( byte EncryptedData ) : byte[]
EncryptedData byte The data to decrypt.
리턴 byte[]

EncryptData() 공개 메소드

Takes in an unencrypted byte array and returns the encrypted form.
public EncryptData ( byte UnencryptedData ) : byte[]
UnencryptedData byte The byte array to encrypt.
리턴 byte[]

SymmetricEncryption() 공개 메소드

Creates a new SymmetricEncryption handler for the passed in SymmetricAlgorithm.
public SymmetricEncryption ( SymmetricAlgorithm Algorithm ) : Brunet
Algorithm System.Security.Cryptography.SymmetricAlgorithm
리턴 Brunet

프로퍼티 상세

BlockSizeByte 공개적으로 프로퍼티

public int BlockSizeByte
리턴 int