Exemplo n.º 1
0
 public static void CallEncryption(bool encryption, char[] password, string keyfilePath, string[] filePaths)
 {
     byte[] passwordBytes = FileEncryption.GetPasswordBytes(password);
     Utilities.ZeroArray(password);
     FileEncryption.StartEncryption(encryption, filePaths, passwordBytes, keyfilePath);
     EncryptionCompleted(encryption);
 }
Exemplo n.º 2
0
 private static void GetBenchmarkInputs(out byte[] passwordBytes, out byte[] salt)
 {
     char[] password = "******".ToCharArray();
     passwordBytes = FileEncryption.GetPasswordBytes(password);
     salt          = Generate.Salt();
 }