Crates.io | cryptify |
lib.rs | cryptify |
version | 3.1.1 |
source | src |
created_at | 2024-01-09 23:04:21.901526 |
updated_at | 2024-02-01 18:53:15.235451 |
description | A procedural macro library to obfuscate Rust code. Provides compile-time string encryption and random flow obfuscation. |
homepage | |
repository | https://github.com/dronavallipranav/rust-obfuscator/tree/main/cryptify |
max_upload_size | |
id | 1094718 |
size | 4,511 |
cryptify
is a procedural macro crate for compile-time rust obfuscation. It provides the user with string encryption and compile-time determined flow obfuscation and random variables which survive compile-time optimization.
rust-obfuscator - Check out this auto obfuscator tool for easier usage and integration
use cryptify;
fn main(){
let decrypted = cryptify::encrypt_string("Hello, World!");
println!(decrypted);
println!("{}", cryptify::encrypt_string!("formatted!"));
}
Set the CRYPTIFY_KEY environment variable for custom encryption otherwise it defaults to defined fixed key
Hello World!
formatted!
{
let _is_dummy_145 = true;
let _dummy_upper_bound = 100;
let _dummy_increment = 1i32;
let mut _dummy_counter = 10i32;
let _extra_dummy_var = 2i32;
loop {
if _dummy_counter > _dummy_upper_bound {
break;
}
unsafe {
std::ptr::write_volatile(
&mut _dummy_counter,
_dummy_counter + _dummy_increment,
);
}
}
};
match (&1, &1) {
(left_val, right_val) => {
if !(*left_val == *right_val) {
let kind = ::core::panicking::AssertKind::Eq;
::core::panicking::assert_failed(
kind,
&*left_val,
&*right_val,
::core::option::Option::None,
);
}
}
};
cryptify is licensed under the MIT License - see the LICENSE file for details.