codebreaker-rs
A Rust library to decrypt & encrypt any cheat code for CodeBreaker PS2.
Originally reverse-engineered from MIPS R5900 assembly and converted to C in 2006. Now ported to Rust for fun and profit.
For more information, check out my article on 7 Things I Learned From Porting a C Crypto Library to Rust.
Quickstart
Add the crate as a dependency to your Cargo.toml
:
[]
= "0.3"
Now you can start decrypting some codes:
use Codebreaker;
let input: = vec!;
let output: = vec!;
let mut cb = new;
for in input.iter.enumerate
Read the full documentation for more examples.
no_std
support
The codebreaker
crate has a Cargo feature named "std" that is enabled by default. In order to use the crate on embedded systems, this feature needs to be disabled:
[]
= { = "0.3", = false }
License
Copyright (c) 2020-2024 Mathias Lafeldt
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.