Example #1
0
        public static string EncryptStringBase64(this string value)
        {
            var encrypt = new phc_DACommon.Methods();

            encrypt.fGetEncryptedString(ref value);
            return(value);
        }
Example #2
0
        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;
        }
Example #3
0
        public static string DecryptStringBase64(this string value)
        {
            var decrypt = new phc_DACommon.Methods();

            try
            {
                decrypt.fGetDecryptedString(ref value);
                return(value);
            }
            catch (Exception)
            {
                return(value);
            }
        }