Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jujuadams/sphinx
Simple encryption for GameMaker Studio 2.3.2
https://github.com/jujuadams/sphinx
encryption gamemaker gamemaker-studio-2 gms2
Last synced: about 1 month ago
JSON representation
Simple encryption for GameMaker Studio 2.3.2
- Host: GitHub
- URL: https://github.com/jujuadams/sphinx
- Owner: JujuAdams
- License: mit
- Created: 2021-06-08T19:27:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-18T11:12:12.000Z (11 months ago)
- Last Synced: 2024-02-18T12:25:43.392Z (11 months ago)
- Topics: encryption, gamemaker, gamemaker-studio-2, gms2
- Language: Game Maker Language
- Homepage:
- Size: 39.1 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Sphinx 1.0.0
Simple encryption for GameMaker Studio 2.3.2 by Juju Adams
Sphinx is a basic encryption system. It's suitable for rudimentary protection of game data but should not be used for storing confidential information, such as identifying personal details or banking details. This library is released under the MIT License, without warranty of any kind.
Remember that no security is unbeatable: it is a case of *when* security is broken rather than *if* it can be. Encryption just slows the process. Think carefully about what data you absolutely need to protect in your game and always export builds using YYC!
The method used to encrypt is:
1. Compress a buffer using GM's native zlib implementation
2. Use a PRNG to XOR bytes in the compressed bufferDecryption is the reverse. The PRNG used is XORShift32 with a 64-bit key. This method resists casual attacks but will not stand up to a determined adversary. By default, the entire buffer is XOR'd, though this is ultimately overkill for very large buffers and deleterious for performance -`SPHINX_MAXIMUM_XOR_BYTES` can be set to limit how many bytes should be XOR'd.