public static string EncryptStringBase64(this string value) { var encrypt = new phc_DACommon.Methods(); encrypt.fGetEncryptedString(ref value); return(value); }
private static void DecryptCredentials(this PortalUser portalUser, ref string username, ref string password) { var decrypt = new phc_DACommon.Methods(); username = portalUser.Username; password = portalUser.Password; decrypt.fGetDecryptedString(ref username); decrypt.fGetDecryptedString(ref password); portalUser.Password = password; portalUser.Username = username; }
public static string DecryptStringBase64(this string value) { var decrypt = new phc_DACommon.Methods(); try { decrypt.fGetDecryptedString(ref value); return(value); } catch (Exception) { return(value); } }