Example #1
0
        private void btn_CreateKey_Click(object sender, EventArgs e)
        {
            var keyValue = AesCrypto.CreateKeyAndIvBytes();

            if (!isIvEncrypt())
            {
                keyValue = new KeyValuePair <byte[], byte[]>(keyValue.Key, null);
            }
            DisplayKey(keyValue);
        }