/// <summary> /// Decrypts the value using the default FNS key. /// </summary> static public string DecryptValue(string value) { try { return(DbClassLibrary.GeneralUtility.DecryptValue(value)); } catch (Exception ex) { ErrorLog.LogInfo("VALUE=" + value + " " + ex.Message, "DecryptValue"); } return(value); }
/// <summary> /// Encrypts the value. /// </summary> /// <param name="provider">The provider.</param> /// <param name="value">The value.</param> /// <returns></returns> static public string EncryptValue(string provider, string value) { try { if (!string.IsNullOrEmpty(value)) { return(DbClassLibrary.GeneralUtility.EncryptValue(provider, value)); } } catch (Exception ex) { ErrorLog.LogInfo("VALUE=" + value + " " + ex.Message, "EncryptValue"); } return(value); }