https://github.com/caphosra/unity_cprdatasaver
With CPRSaveData, you can create encrypted save data that is hard to be rewritten!
https://github.com/caphosra/unity_cprdatasaver
c-sharp c-sharp-library cprdatasaver csharp csharp-library encryption unity unity2d unity3d
Last synced: 4 months ago
JSON representation
With CPRSaveData, you can create encrypted save data that is hard to be rewritten!
- Host: GitHub
- URL: https://github.com/caphosra/unity_cprdatasaver
- Owner: caphosra
- License: mit
- Created: 2018-02-22T07:39:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-18T08:54:26.000Z (about 7 years ago)
- Last Synced: 2025-01-10T19:56:49.688Z (6 months ago)
- Topics: c-sharp, c-sharp-library, cprdatasaver, csharp, csharp-library, encryption, unity, unity2d, unity3d
- Language: C#
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unity_CPRDataSaver
With CPRSaveData, you can create encrypted save data that is hard to be rewritten!## Description
This library allows you to encrypt and save serializable classes or structures you created.
At the present stage, PlayerPrefs stores encrypted data.
Both will make it possible to output to a file.## Usage
If you make a class like the following ...
```C#
[System.Serializable]
public class PlayerSaveData
{
public long money;
public int score;
public float speed;
}
```
In this way you can save the data.
```C#
// using CPRUnitySystem;CPRDataSaver.SetPlayerPrefsEncrypt("Key", playerSaveData, "password");
```
You can do this in retrieving data.
```C#
var playerSaveData = CPRDataSaver.SetPlayerPrefsEncrypt("Key", "password");
```
It can also be used without encryption.
```C#
// Save
CPRDataSaver.SetPlayerPrefs("Key", playerSaveData);
// Load
playerSaveData = CPRDataSaver.GetPlayerPrefs("Key");
```## Install
### When to use
Please go to [ReleasePage](https://github.com/capra314cabra/Unity_CPRDataSaver/releases).
### When to clone this repository
Please use the following command.
`git clone https://github.com/capra314cabra/Unity_CPRDataSaver.git`## Author
[capra314cabra](https://github.com/capra314cabra/)