Пример #1
0
        public void EncryptStringToVerifySuccess()
        {
            const string data = "Reşad";
            string       encrypted;
            string       saltKey;

            _hashing.EncryptString(data, out encrypted, out saltKey);

            Debug.WriteLine("Data : {0}, Encrypted : {1}, SaltKey : {2}", data, encrypted, saltKey);
            bool verified = _hashing.VerifyEncryptionString(data, saltKey, encrypted);

            Assert.AreEqual(verified, true);
        }