rpgm-archive-decrypter-lib
BLAZINGLY :fire: fast and tiny library for decrypting RPG Maker XP/VX/VXAce .rgssad/.rgss2a/.rgss3a archives.
This project essentially is a rewrite of uuksu's RPGMakerDecrypter in Rust as a library, but it also implements archive encryption, and can be run in no_std environments.
And since it's implemented in Rust 🦀🦀🦀, it's also very tiny, clean, and performant.
Used in my rpgm-archive-decrypter CLI tool and RPGMTranslate.
Example
Decrypt
use ;
use ;
let mut archive_content: = read.unwrap;
let mut decrypter = new;
let decrypted_entries = decrypter.decrypt.unwrap;
for entry in decrypted_entries
Encrypt
use ;
use ;
let data = read.unwrap;
let archive_entries = ;
let mut decrypter = new;
let encrypted_buffer_size = encrypted_buffer_size;
let mut archive_buffer = Vecnew;
archive_buffer.resize;
decrypter.encrypt;
write.unwrap;
Features
default- default feature enables the usage ofstd. If you're using this crate in ano_stdenvironment for some reason, you need to disable default feature.serde- enables serde serialization/deserialization forErrortype.
Support
Me, the maintainer of this project, is a poor college student from Eastern Europe.
If you could, please consider supporting us through:
Even if you don't, it's fine. We'll continue to do as we right now.
License
Project is licensed under WTFPL.