Ejemplo n.º 1
0
 private void GetPasswordBytes(bool encryption, char[] password)
 {
     byte[] passwordBytes = FileEncryption.GetPasswordBytes(password);
     Utilities.ZeroArray(password);
     AutoClearPassword();
     StartBackgroundWorker(encryption, passwordBytes);
 }
Ejemplo n.º 2
0
        private void BgwDecryption_DoWork(object sender, DoWorkEventArgs e)
        {
            bool encryption = false;

            byte[] passwordBytes = (byte[])e.Argument;
            FileEncryption.StartEncryption(encryption, passwordBytes, bgwDecryption);
        }
Ejemplo n.º 3
0
 private static void GetBenchmarkInputs(out byte[] passwordBytes, out byte[] salt)
 {
     char[] password = "******".ToCharArray();
     passwordBytes = FileEncryption.GetPasswordBytes(password);
     salt          = Generate.Salt();
 }