Пример #1
0
        /// <summary>
        /// Obscure clear value. Obscure Digits but last 4
        /// name changed from obscure - ObscureValue as Obscure is a constructor
        /// </summary>
        /// <param name="clearValue">clear value</param>
        /// <returns>obscured value or "-"</returns>
        public static String ObscureValue(String clearValue)
        {
            if (clearValue == null || clearValue.Length == 0)
            {
                return("-");
            }
            Obscure ob = new Obscure(clearValue);

            return(ob.GetObscuredValue());
        }
Пример #2
0
        /// <summary>
        /// Obscure clear value
        /// name changed from obscure - ObscureValue as Obscure is a constructor
        /// </summary>
        /// <param name="clearValue">clear value</param>
        /// <param name="obscureType">Obscure Type</param>
        /// <returns>obscured value</returns>
        public static String ObscureValue(String clearValue, String obscureType)
        {
            Obscure ob = new Obscure(clearValue, obscureType);

            return(ob.GetObscuredValue());
        }