Exemplo n.º 1
0
 private void WriteEncryptedBytes(string fileName, byte[] fileBytes)
 {
     encrypted = cryptography.Encrypt(fileBytes, "raktas");
     File.WriteAllBytes(fileName, encrypted);
     hashAndStore.OnFileEncrypted(fileName);
 }
Exemplo n.º 2
0
 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);
 }