public static SqlString xfn_IntCrypt_Decrypt(SqlString strDomain, SqlString strApp, SqlString s) { try { byte[] key = null; byte[] iv = null; GetKeyManager().GetKeyIv(strDomain.ToString(), strApp.ToString(), ref key, ref iv); IntCryptLib crypt = new IntCryptLib(); SqlString strResult = crypt.AES_Decrypt(key, iv, s.ToString()); return(strResult); } catch (Exception) { } return(null); }