public static string GetString(string key, string defaultValue = "")
    {
        string text  = defaultValue;
        string value = PlayerPrefs.GetString(EncryptionManager.GetHash(key), defaultValue.ToString());

        if (!text.Equals(value))
        {
            text = EncryptionManager.Decrypt(value);
        }
        return(text);
    }
    public static void DeleteKey(string key)
    {
        string hash = EncryptionManager.GetHash(key);

        PlayerPrefs.DeleteKey(hash);
    }
    public static bool HasKey(string key)
    {
        string hash = EncryptionManager.GetHash(key);

        return(PlayerPrefs.HasKey(hash));
    }
 public static void SetString(string key, string val)
 {
     PlayerPrefs.SetString(EncryptionManager.GetHash(key), EncryptionManager.Encrypt(val));
 }
 public static void SetDouble(string key, double val)
 {
     PlayerPrefs.SetString(EncryptionManager.GetHash(key), EncryptionManager.Encrypt(val.ToString()));
 }