Skip to content

AesAlgortihms

MinegamesAdministrationTool edited this page Jun 14, 2021 · 2 revisions

AesAlgorithms File Encryption Example:

using CryptoPrivacy;

private void button1_Click(object sender, EventArgs e)
{
    AesAlgorithms FileEncryption = new AesAlgorithms();
    FileEncryption.EncryptFile("FilePath", "KeyToEncryptWith");
}

AesAlgorithms Text Encryption Example:

using CryptoPrivacy;

private void button1_Click(object sender, EventArgs e)
{
    AesAlgorithms TextEncryption = new AesAlgorithms();
    string EncryptedText = TextEncryption.AesTextEncryption("TextToEncrypt", "KeyToEncryptWith", "IVToEncryptWith");
    textBox1.Text = EncryptedText;
}
Clone this wiki locally