插件笔记_CryptoPlayerPrefs-1.3.3

 Thanks for purchasing the CryptoPlayerPrefs class for Unity3D!


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.
It is capable of using the Advanced Encryption加密 Standard (Rijndael Algorithm算法) (default activated).
It also offers an XOR-option, to make the values "unreadable" for humans (default activated).


=== How to use? ===
You can use the CryptoPlayerPrefs class just like the PlayerPrefs class, just Replace PlayerPrefs by CryptoPlayerPrefs.


But it is recommended to set the salt for every application indivudally via the CryptoPlayerPrefs.setSalt(int) Method.
Or you can also use the CryptPlayerPrefsManager to set this setting in the editor.
You can even activate / deactivate Rijndael and the XOR seperately.
But in order to maximize security of the data it should be left as default.


ATTENTION: 
When you released a productive version of your application don't change settings anymore (or think about migration BEFORE!)
If you change it the cryptographie will be messed up and the keys won't work anymore etc..
A Mono.Security.Cryptography.SymmetricTransform.ThrowBadPaddingException would be thrown.
Therefore: Set these settings ONCE and don't change them anymore!


= Example =
PlayerPrefs.HasKey("coins") => CryptoPlayerPrefs.HasKey("coins")
PlayerPrefs.SetInt("coins", 1000) => CryptoPlayerPrefs.SetInt("coins", 1000)
and so on...


There is also an Example Scene which uses the CryptoPlayerPrefs class.
It has a bouncy ball which collides with boxes and everytime a collision occured it is saved according to the box. 


= CryptoPlayerPrefsX =
We've added a adjusted version of ArrayPrefs2 (http://wiki.unity3d.com/index.php/ArrayPrefs2), so you can use these additional features in a crypted way.
Therewith you can save arrays and other stuff.


=== Limitations ===
You must not use the stripping level 3 (Android / iOS)!
The CryptoPlayerPrefs class relies on the System.Security component and this is not included in the micro mscorlib.
Stripping level 0-2 works fine (if you use the given link.xml).


=== Questions? ===
Don't hesitate to send us an email: assetstore@zeichenkraftwerk.de


== Version History == 
- 1.3.3
* Fixed support for Windows Store apps (failed signing due to usage of unallowed API)


- 1.3.2
* Added support for Windows Phone and Windows Store Apps (Metro)


- 1.1.2:
* Added fix, so that MonoDevlop doesn't complain about default value defintions in method head.


- 1.1: 
* Added a adjusted version of ArrayPrefs2 (http://wiki.unity3d.com/index.php/ArrayPrefs2), so you can use these features in a crypted way.
Use CryptoPlayerPrefsX for that.
* Added version history and CryptoPlayerPrefsX section in readme


- 1.0.1: 
* Added link.xml, so Strippling Level 0-2 it works out of the box on Android and iOS


- 1.0: 
*Initial Release
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值