/// <summary> /// 对手机号进行DES解密 /// </summary> /// <param name="mobile"></param> /// <returns></returns> public static string DecryptMobileFromApp(string mobile) { if (mobile.IsNullOrEmpty()) { return(""); } try { string val = CryptographyUtils.DesDecrypt(mobile, AppCreditDesSecretKey); if (!val.IsNullOrEmpty()) { return(val); } } catch (Exception ex) { // ignored } return(""); }
/// <summary> /// 对用户ID进行DES解密 /// </summary> /// <param name="encryptUserId"></param> /// <returns></returns> public static string DecryptUserIdByDes(string encryptUserId) { if (encryptUserId.IsNullOrEmpty()) { return(""); } try { string val = CryptographyUtils.DesDecrypt(encryptUserId, UserIdDesSecretKey); string[] vals = val.Split(','); if (vals.Length == 2) { return(vals[0]); } } catch (Exception ex) { // ignored } return(""); }