Exemple #1
0
        private static string DecryptImplementation(string source, string key, IDecrypt decryptor)
        {
            Debug.Assert(source != null, "source != null");
            Debug.Assert(source.Length > 0, "source cannot be empty");
            Debug.Assert(decryptor != null, "decryptor != null");
            Debug.Assert(key != null, "key != null");
            Debug.Assert(key.Length >= decryptor.MinimumPasswordLength, "key too short");

            return decryptor.DecryptAES(source, key);
        }