C# Class AesEncrypter.EncryptionManager

Datei anzeigen Open project: vchelaru/FlatRedBall Class Usage Examples

Public Methods

Method Description
DecryptFromBytes ( byte encryptedBytes ) : byte[]
DecryptFromStream ( Stream stream, int encryptedByteCount ) : byte[]
DecryptFromStreamToStream ( Stream fromStream, Stream toStream, Action updateAction = null ) : void
EncryptToBytes ( byte unencryptedBytes ) : byte[]
EncryptionManager ( ) : System

Private Methods

Method Description
AssignByteArrayFromString ( string value, byte byteArray ) : void
CopyFromStreamToStream ( Stream fromStream, Stream toStream, int size, Action updateAction ) : void
GetDecryptStream ( Stream encryptedStream ) : CryptoStream
IsValidKeyOrVector ( string value ) : bool

Method Details

DecryptFromBytes() public method

public DecryptFromBytes ( byte encryptedBytes ) : byte[]
encryptedBytes byte
return byte[]

DecryptFromStream() public method

public DecryptFromStream ( Stream stream, int encryptedByteCount ) : byte[]
stream Stream
encryptedByteCount int
return byte[]

DecryptFromStreamToStream() public method

public DecryptFromStreamToStream ( Stream fromStream, Stream toStream, Action updateAction = null ) : void
fromStream Stream
toStream Stream
updateAction Action
return void

EncryptToBytes() public method

public EncryptToBytes ( byte unencryptedBytes ) : byte[]
unencryptedBytes byte
return byte[]

EncryptionManager() public method

public EncryptionManager ( ) : System
return System