Exemplo n.º 1
0
 /// <summary>
 /// Sets the alphabet used for obfuscating (masking) the underlying integer value of the MaskableInt32.
 /// </summary>
 /// <param name="alphabet"></param>
 public static void SetObfuscationAlphabet(string alphabet)
 {
     IntegerObfuscator.SetObfuscationAlphabet(alphabet);
 }
Exemplo n.º 2
0
        public static MaskableInt32 GetUnmaskedValue(string value)
        {
            int deobfuscatedValue = IntegerObfuscator.Deobfuscate(value);

            return(deobfuscatedValue);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Sets the salt value used for obfuscating (masking) the underlying integer value of the MaskableInt32
 /// </summary>
 /// <param name="salt"></param>
 public static void SetObfuscationSalt(string salt)
 {
     IntegerObfuscator.SetObfuscationSalt(salt);
 }
Exemplo n.º 4
0
 public string GetMaskedValue()
 {
     return(IntegerObfuscator.Obfuscate(this.Val));
 }