查看: 4484|回复: 0
打印 上一主题 下一主题

[插件资源] CryptoPlayerPrefs 1.3.3

[复制链接]

955

主题

164

听众

7万

积分

版主

Rank: 7Rank: 7Rank: 7

纳金币
59338
精华
28

活跃会员 荣誉管理 突出贡献 优秀版主 论坛元老

跳转到指定楼层
楼主
发表于 2014-5-15 12:16:05 |显示全部楼层 |倒序浏览
快照9.png

Requires Unity 4.3.0 or higher.

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.zip

44.61 KB, 下载次数: 19

分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

关闭

站长推荐上一条 /1 下一条

手机版|纳金网 ( 闽ICP备08008928号

GMT+8, 2024-5-17 08:04 , Processed in 0.088207 second(s), 36 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部