Repository navigation
Releases
v2.0.0
UnityCipher v2.0.0
This release improves Unity Package Manager integration and assembly-definition support while keeping the existing
AES/Rijndael and RSA APIs largely unchanged.
Highlights
- Added a
UnityCipherAssembly Definition for projects that use.asmdeffiles. - Improved UPM package metadata and version-pinned installation.
- Added automated EditMode testing and
.unitypackagegeneration. - Updated the installation and assembly-reference documentation.
Installation
Install v2.0.0 through Unity Package Manager using:
https://github.com/TakuKobayashi/UnityCipher.git?path=/Assets/UnityCipher#v2.0.0
Alternatively, add it directly to Packages/manifest.json:
{
"dependencies": {
"net.taptappun.taku.kobayashi.unitycipher":
"https://github.com/TakuKobayashi/UnityCipher.git?path=/Assets/UnityCipher#v2.0.0"
}
}A traditional .unitypackage is also attached to this release.
Assembly Definition support
UnityCipher now provides its own assembly named UnityCipher.
If your project uses Assembly Definition files, add UnityCipher to the Assembly Definition References of each
assembly that uses the library. Adding only using UnityCipher; is not sufficient when the calling code belongs to
another explicitly defined assembly.
Projects without Assembly Definition files can continue using UnityCipher normally.
Breaking change
The first parameter of the string encryption overloads was renamed from plane to plain:
RijndaelEncryption.Encrypt(string plain, string password);
RSAEncryption.Encrypt(string plain, string publicKey);Most callers are unaffected. Code using the old parameter name as a C# named argument must be updated:
// Before
RijndaelEncryption.Encrypt(plane: value, password: password);
// v2.0.0
RijndaelEncryption.Encrypt(plain: value, password: password);Positional calls do not require changes.
Compatibility
- Minimum supported Unity version: Unity 2019.4
- Existing encrypted data formats and cryptographic behavior are unchanged.
- Existing positional method calls remain compatible.patible.
Deal with UPM install and move Examples
UnityCipher has dealed with UPM (Unity Package Manager).
Along with this, the Exampes directory has been moved to the ouside packaging.
The installation method using UPM is described below.
UPM Install
// manifest.json
{
"dependencies": {
"net.taptappun.taku.kobayashi.unitycipher": "https://github.com/TakuKobayashi/UnityCipher.git?path=/Assets/UnityCipher#v1.3.0"
}
}
Add Development features.
Merge pull request #2 from TakuKobayashi/develop version to 1.2.0
Add feature update key settings
v1.1.0 update meta file.
Add LICENSE FIle And UnitTests
v1.0.1 Add Unit Test in RSAEncription
UnityCipher Release!! It can encrypt from Rijndael(AES) or RSA
v1.0 adjust scene