private void btnTest_Click(object sender, EventArgs e) { AES128 aes = new AES128(); string testStr = "qwertyuiopasdfgh999!!!###$$$"; byte[] testStrArr = Encoding.Default.GetBytes(testStr); byte[] test = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; byte[] enc = aes.Encrypt(testStrArr); byte[] dec = aes.Decrypt(enc); byte[] cut = aes.CutTail(dec); string resStr = Encoding.Default.GetString(cut); }
public Facade() { _aes128 = new AES128(); tempPath = "encrypted.txt"; }