Skip to content
/ hoax Public

Simple procedural macro crate that "hides" string literals in the binary in plain sight.

Notifications You must be signed in to change notification settings

FssAy/hoax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hoax

Simple procedural macro crate that "hides" string literals in the binary in plain sight.

Usage

[dependencies]
hoax = "1.0.0"

Panics only when the first token tree is not a string literal, any followings are ignored.
Returns a String collected from a vector of chars.

Example

#[macro_use] extern crate hoax;

println!("{}", "I am not hidden :c");
println!("{}", hoax!("I guess I am hidden c:"));

Expansion

hoax!("cat\n")

is the same as

{vec!['c', 'a', 't', '\n',].iter().collect::<String>()}

About

Simple procedural macro crate that "hides" string literals in the binary in plain sight.

Topics

Resources

Stars

Watchers

Forks

Languages