Exemple #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);
        }
Exemple #2
0
        public static void SetHash(string originalKey, string value, string hashSuffix)
        {
            string value2 = UserPrefs.CreateHashValue(value, hashSuffix);

            UserPrefs.SetString(UserPrefs.CreateHashKey(originalKey), value2);
        }
Exemple #3
0
 public static void RemoveHash(string key)
 {
     UserPrefs.Remove(UserPrefs.CreateHashKey(key));
 }