C# Class ServiceStack.AesUtils

Exibir arquivo Open project: ServiceStack/ServiceStack Class Usage Examples

Public Methods

Method Description
CreateCryptAuthKeysAndIv ( byte &cryptKey, byte &authKey, byte &iv ) : void
CreateIv ( ) : byte[]
CreateKey ( ) : byte[]
CreateKeyAndIv ( byte &cryptKey, byte &iv ) : void
CreateSymmetricAlgorithm ( ) : SymmetricAlgorithm
Decrypt ( byte encryptedBytes, byte cryptKey, byte iv ) : byte[]
Decrypt ( string encryptedBase64, byte cryptKey, byte iv ) : string
Encrypt ( byte bytesToEncrypt, byte cryptKey, byte iv ) : byte[]
Encrypt ( string text, byte cryptKey, byte iv ) : string

Method Details

CreateCryptAuthKeysAndIv() public static method

public static CreateCryptAuthKeysAndIv ( byte &cryptKey, byte &authKey, byte &iv ) : void
cryptKey byte
authKey byte
iv byte
return void

CreateIv() public static method

public static CreateIv ( ) : byte[]
return byte[]

CreateKey() public static method

public static CreateKey ( ) : byte[]
return byte[]

CreateKeyAndIv() public static method

public static CreateKeyAndIv ( byte &cryptKey, byte &iv ) : void
cryptKey byte
iv byte
return void

CreateSymmetricAlgorithm() public static method

public static CreateSymmetricAlgorithm ( ) : SymmetricAlgorithm
return System.Security.Cryptography.SymmetricAlgorithm

Decrypt() public static method

public static Decrypt ( byte encryptedBytes, byte cryptKey, byte iv ) : byte[]
encryptedBytes byte
cryptKey byte
iv byte
return byte[]

Decrypt() public static method

public static Decrypt ( string encryptedBase64, byte cryptKey, byte iv ) : string
encryptedBase64 string
cryptKey byte
iv byte
return string

Encrypt() public static method

public static Encrypt ( byte bytesToEncrypt, byte cryptKey, byte iv ) : byte[]
bytesToEncrypt byte
cryptKey byte
iv byte
return byte[]

Encrypt() public static method

public static Encrypt ( string text, byte cryptKey, byte iv ) : string
text string
cryptKey byte
iv byte
return string