xorstring icon indicating copy to clipboard operation
xorstring copied to clipboard

Evaluates to trash most of the time

Open mrsteyk opened this issue 4 years ago • 0 comments

Even the basic example behaves differently if to compile it normally and not under the test situation. You can kind of get it to evaluate to a needed string but it's kind of random and i dont see the pattern...

let xorred = xorstring_procmacro::xorstring!("abc").0;
assert_ne!(xorred, "abc".as_bytes());

let decrypted = XorString::new(xorred);
let decrypted: String = decrypted.decrypt();

println!("{:?} {:?}", decrypted, xorred);

"UVo" [139, 137, 143]

nightly-x86_64-pc-windows-msvc (default)
rustc 1.47.0-nightly (6c8927b0c 2020-07-26)

mrsteyk avatar Aug 04 '20 17:08 mrsteyk