Use to initialize the static cryptography
using Vasconcellos.Crypt;
class Program
{
static void YourMethod(string[] args)
{
// Note:
///If you initialize the class [CryptographyAES] using values generates automatically,
//store the randomly generated values in some safe place.
var crypt = new CryptographyAES(
key: CryptographyAES.GenerateKey(),
iv: CryptographyAES.GenerateIV(),
bits: CryptographyAES.BitsEnum.bit256
);
}
}
Example of how to encrypt
public string YourMethod(string word)
{
return Vasconcellos.Crypt.CryptographyAES.Encrypt(word);
}
Example of how to decrypt
public string YourMethod(string word)
{
return Vasconcellos.Crypt.CryptographyAES.Decrypt(word);
}