Registry / crypto / obfstr

obfstr

JSON →
library0.4.4rscratesunverified

Compile-time string constant obfuscation for Rust to hide sensitive strings.

# Cargo.toml [dependencies] obfstr = "0.4.4"
INSTALL
IMPORT
SIG · OBFSTR
O
obfstr
cryptorustv0.4.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

obf
use obfstr::obf;

Obfuscates a string literal at compile time.

use obfstr::obf; fn main() { let secret = obf!("my_secret_key"); println!("Obfuscated: {}", secret); }
Debug
Known issues
gotchaObfuscation is not encryption; strings can still be recovered with reverse engineering.
fix
Use proper encryption for sensitive data if needed.
affects: >=0.1.0
Upgrade
Version history
0.4.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
obfstr — cargo add obfstr · libregistry