public void Get_hash_with_alpha_numeric_and_other_letters() { string text = "5uPms(o0t!7kT~hxgP=xTtj-*6rSvdhI]hV^9tsx1S,*i_0!cn"; string hash = EncriptyRijndael.Crypt(text, vector, key); Assert.NotEqual(text, hash); Assert.Equal(text, EncriptyRijndael.Decrypt(hash, vector, key)); }
public void Get_hash_with_for_email() { string text = "*****@*****.**"; string hash = EncriptyRijndael.Crypt(text, vector, key); Assert.NotEqual(text, hash); Assert.Equal(text, EncriptyRijndael.Decrypt(hash, vector, key)); }
public void Get_hash_with_alpha_numeric() { string text = "5MkqSmxmux6eRVv17nfusWck98lHtc"; string hash = EncriptyRijndael.Crypt(text, vector, key); Assert.NotEqual(text, hash); Assert.Equal(text, EncriptyRijndael.Decrypt(hash, vector, key)); }
public void Get_hash_with_lowercase_compare() { string text = "5uPms(o0t!7kT~hxgP=xTtj-*6rSvdhI]hV^9tsx1S,*i_0!cn"; string textLower = text.ToLower(); string hash = EncriptyRijndael.Crypt(text, vector, key); string hashLower = EncriptyRijndael.Crypt(textLower, vector, key); Assert.NotEqual(text, hash); Assert.Equal(text, EncriptyRijndael.Decrypt(hash, vector, key)); Assert.NotEqual(textLower, hashLower); Assert.Equal(textLower, EncriptyRijndael.Decrypt(hashLower, vector, key)); Assert.NotEqual(textLower, text); Assert.NotEqual(hashLower, hash); }