Protected PlayerPrefs

Save data attackers can't edit.

Unity stores PlayerPrefs as plain text - in the Windows registry, in macOS plists, in Android XML files. ProtectedPlayerPrefs ships the same API, but every value is encrypted on disk and unreadable to save-file editors.

Protected PlayerPrefs – AntiCheat for Unity
The Problem

PlayerPrefs is plain text everywhere Unity ships.

Unity's PlayerPrefs stores everything as clear text. Living in the registry or as a plain file, a player edits gold, lives or unlocked levels within seconds.

Windows PlayerPrefs sit unencrypted in the registry.

Android PlayerPrefs are stored in a plain XML file.

Save-file editors on YouTube walk first-time cheaters through it in under a minute.

Vanilla Unity
1// Editable with any text editor
2PlayerPrefs.SetInt("Gold", 1000);
3PlayerPrefs.SetString("PlayerName", "Hero");
With AntiCheat
1// Tampered files fail to decrypt
2ProtectedPlayerPrefs.SetInt("Gold", 1000);
3ProtectedPlayerPrefs.SetString("PlayerName", "Hero");
tampereddecryption fails
The Solution
Solved

Same API, every value encrypted on disk.

Same API as UnityEngine.PlayerPrefs, but every value is encrypted on disk. Edited save files simply fail to decrypt - no extra code path required.

  • Drop-in API parity with UnityEngine.PlayerPrefs
  • Per-key encryption + tamper detection on disk
  • Old plaintext prefs can be migrated transparently
Unity Compatibility

Works everywhere your Unity game ships.

Unity 2021.3 and up, both scripting backends and every supported platform.

Unity 6
Unity 2023
Unity 2022
Unity 2021.3+
IL2CPP
Mono
Windows
macOS
Linux
Android
iOS
WebGL
Consoles
And many more...
What to expect

Protected PlayerPrefs,
the way Unity teams expect.

One search-and-replace and you're done

ProtectedPlayerPrefs mirrors UnityEngine.PlayerPrefs exactly, so migrating an entire game is a one-line refactor with zero risk to your existing save format.

Save-file editors become a YouTube relic

Keys and values are encrypted before they hit disk, so the registry-edit and XML-edit tutorials on YouTube simply stop working against your game.

Cloud-sync ready out of the box

ProtectedFileBasedPlayerPrefs writes a single encrypted blob anywhere you want - perfect for cloud saves, per-profile data and any backend that expects a file you control.

Nothing to wire, nothing to babysit

No prefab, no monitor, no detector. The protection is built into the API, so you can ship hardened save data without touching your scene hierarchy.

Free for every project

Both ProtectedPlayerPrefs and ProtectedFileBasedPlayerPrefs ship in the Free asset - there is no reason your save data should still be plain text tomorrow.

Why developers choose us

Built for Unity teams
that need to ship.

More than a feature list - a security partner Unity studios have relied on for over a decade.

Drop-in Unity APIs

Every protected type mirrors the Unity API you already use. Migration is usually a search-and-replace.

Four pillars of defense

Protection, Monitoring, Detection and Punishment chained together by a single AntiCheat-Monitor prefab.

Zero-code reactions

Simply drop-ins for the AntiCheat-Monitor via the Inspector - no code required.

Mono and IL2CPP, Unity 2021.3+

One package, every supported scripting backend, every Unity-supported platform.

10+ years of Unity security

GuardingPearSoftware has shipped Unity security tools now over a decade.

Money-back guarantee

Not satisfied? We refund - no fine print, no questions. We only win when your game ships protected.

FAQ

Frequently asked questions.

Common questions Unity developers ask about protected playerprefs.

Pairs well with

Layer your defences.

Ships for Unity 2021.3+

Ready to ship cheat-free?

Stop memory editors, save tampering, speed hacks and repackaged APKs - in a single afternoon.

Money-back guarantee if you are not satisfied • Instant delivery • Lifetime updates