Expand description
§Rustfuscator
A Rust library for obfuscating and unobfuscating text using AES-GCM encryption.
This library provides a way to protect sensitive data through obfuscation, which is a form of lightweight encryption. It uses AES-GCM for encryption, PBKDF2 for key derivation, and Base64 for string encoding.
§Example
use rustfuscator::Obfuscator;
fn main() {
// Create a new obfuscator with a passphrase
let obfuscator = Obfuscator::new("my-secure-passphrase".as_bytes());
// Obfuscate a string
let obfuscated = obfuscator.obfuscate("Hello, World!").unwrap();
println!("Obfuscated: {}", obfuscated);
// Unobfuscate the string
let unobfuscated = obfuscator.unobfuscate(&obfuscated).unwrap();
println!("Unobfuscated: {}", unobfuscated);
}Structs§
- Config
- Configuration for the Obfuscator
- Obfuscator
- The main obfuscator struct that provides text obfuscation functionality
Enums§
- Obfuscator
Error - Possible errors that can occur during obfuscation/unobfuscation
Constants§
- DEFAULT_
SEPARATOR_ STR - Default separator constant for usage in other modules