Maestro
Loading...
Searching...
No Matches
Dacris.Maestro.Encrypt.AesEncryption Class Reference

Static Public Member Functions

static async Task< string > EncryptAsync (string PlainText, string Password, string Salt="Kosher", string HashAlgorithm="SHA1", int PasswordIterations=2, string InitialVector="OFRna73m*aze01xY", int KeySize=256)
 Encrypts a string.
 
static async Task< string > DecryptAsync (string CipherText, string Password, string Salt="Kosher", string HashAlgorithm="SHA1", int PasswordIterations=2, string InitialVector="OFRna73m*aze01xY", int KeySize=256)
 Decrypts a string.
 

Member Function Documentation

◆ DecryptAsync()

static async Task< string > Dacris.Maestro.Encrypt.AesEncryption.DecryptAsync ( string CipherText,
string Password,
string Salt = "Kosher",
string HashAlgorithm = "SHA1",
int PasswordIterations = 2,
string InitialVector = "OFRna73m*aze01xY",
int KeySize = 256 )
inlinestatic

Decrypts a string.

Parameters
CipherTextText to be decrypted
PasswordPassword to decrypt with
SaltSalt to decrypt with
HashAlgorithmCan be either SHA1 or MD5
PasswordIterationsNumber of iterations to do
InitialVectorNeeds to be 16 ASCII characters long
KeySizeCan be 128, 192, or 256
Returns
A decrypted string

◆ EncryptAsync()

static async Task< string > Dacris.Maestro.Encrypt.AesEncryption.EncryptAsync ( string PlainText,
string Password,
string Salt = "Kosher",
string HashAlgorithm = "SHA1",
int PasswordIterations = 2,
string InitialVector = "OFRna73m*aze01xY",
int KeySize = 256 )
inlinestatic

Encrypts a string.

Parameters
PlainTextText to be encrypted
PasswordPassword to encrypt with
SaltSalt to encrypt with
HashAlgorithmCan be either SHA1 or MD5
PasswordIterationsNumber of iterations to do
InitialVectorNeeds to be 16 ASCII characters long
KeySizeCan be 128, 192, or 256
Returns
An encrypted string

The documentation for this class was generated from the following file: