Exemplo n.º 1
0
        public static bool CheckHash(string originalKey, string value, string hashSuffix)
        {
            if (!StringUtils.HasText(value))
            {
                return(true);
            }
            string @string = UserPrefs.GetString(UserPrefs.CreateHashKey(originalKey), null);
            string a       = UserPrefs.CreateHashValue(value, hashSuffix);

            return(a == @string);
        }
Exemplo n.º 2
0
        public static void SetHash(string originalKey, string value, string hashSuffix)
        {
            string value2 = UserPrefs.CreateHashValue(value, hashSuffix);

            UserPrefs.SetString(UserPrefs.CreateHashKey(originalKey), value2);
        }