[New Unity Asset] Cryptography and Encryption in Unity with CryptoLibrary
Hi, everybody! My name is Elijah. I've been developing games for the last 10+ years. During this time I have accumulated a lot of different developments that I would like to start sharing, from programming libraries to assets that you can build commercial games around.
This time I'd like to share my thoughts on securing your games, specifically cryptography and hashing. My small Open-Source library - Crypto Library - will help you in this.
About Cryptography
Cryptography allows you to encrypt a lot of data both one-way and two-way to protect your data. In games, this could be a save file, or requests sent to/from your web server.
There are hundreds of types of cryptography currently available, but I have focused on the most modern and popular (and will be adding more modern ones to the library as time goes on).
CryptoLibrary Modules
- Encryption and Decryption: AES, Triple DES, BlowFish, Twofish, RSA, DES, Base64, XOR;
- Hashing: SHA, PBKDF2, MD5, xxHash, RIPEMD-160, CRC32;
How to secure your game with CryptoLibrary?
So, you can encrypt/decrypt your save files and/or webrequests in your games. And how?
Encrypt Any Text:
string encryptedText = CryptoController.Encrypt("MyTextToEncrypt");
Decrypt Any Text:
string decryptedText = CryptoController.Decrypt(encryptedText);
Download Free Latest Package (March 2024):
unity_crypto.unitypackage262.50 Kb
unity
development
game
security
encryption
hashing
decryption
programming
gamedev