Ejemplo n.º 1
0
        private void WriteEncryptedBytes(string fileName, byte[] fileBytes)
        {
            Encryptor = Factory.CreateEncryptor(Password);
            byte[] Encrypted = Encryptor.Encrypt(fileBytes);
            File.WriteAllBytes(fileName, Encrypted);
            Md5 = CreateHasher(fileName);
            string hashString = Md5.BeginHashing();

            HashFile.TransformStringAndWrite(fileName, hashString);
        }