Esempio n. 1
0
    public static string Decrypt(KeyType keyType, string encrypted)
    {
        SimpleAES aes = new SimpleAES(keyType);

        try
        {
            return(aes._Decrypt(encrypted));
        }
        catch (Exception)
        {
            return(null);
        }
    }
Esempio n. 2
0
 public static string Decrypt(KeyType keyType, string encrypted)
 {
     SimpleAES aes = new SimpleAES(keyType);
     try
     {
         return aes._Decrypt(encrypted);
     }
     catch(Exception)
     {
         return null;
     }
 }