Exemplo n.º 1
0
 public static bool Comparar(string strEncriptado, string strA_Comparar, string strClave) => Cript.Desencriptar(strEncriptado, strClave).Equals(strA_Comparar);
Exemplo n.º 2
0
 public static string Desencriptar(string strToDesEncriptar, string strPK) => Cript.Desencriptar(Convert.FromBase64String(strToDesEncriptar), new PasswordDeriveBytes(strPK, (byte[])null).GetBytes(32));