Example #1
0
 private void WriteEncryptedBytes(string fileName, byte[] fileBytes)
 {
     encrypted = cryptography.Encrypt(fileBytes, "raktas");
     File.WriteAllBytes(fileName, encrypted);
     hashAndStore.OnFileEncrypted(fileName);
 }
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     byte[] encrypted = AEScrypto.Encrypt(File.ReadAllBytes(PathTextBox.Text + @"\" + "HashValues.txt"), "ds");
     File.WriteAllBytes(PathTextBox.Text + @"\" + "HashValues.txt", encrypted);
 }