Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Input Management
1/3

The CryptoPlayerPrefs class is an alternative for the PlayerPrefs class, by adding cryptography. Thus, it is possible to secure sensitive data and protect them from game modification and cheating.

How to?

Simply replace PlayerPrefs.* with CryptoPlayerPrefs.*

As an example:
You could have a preference "isPremium", which is set to "yes" if premium and to "no" if not. People could modify PlayerPrefs and set straight forward "isPremium" to "yes". WIth CryptoPlayerPrefs they don't know which preference is responsible for premium activation and also don't know which value would mean 'yes'. Or you have a highscore based game and a level system. Every level gives you 5% points boost. The CryptoPlayerPrefs class makes the preferences (e.g. level) unreadable for the user and protects against modifications.

It is capable of using the Advanced Encryption Standard (Rijndael Algorithm). It also offers an XOR-option, to make the values "unreadable" for humans.

CryptoPlayerPrefs

(38)
113 users have favourite this asset
(113)
$10
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
41.4 KB
Latest version
1.3.5
Latest release date
May 14, 2015
Original Unity version
4.3.0
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR