Snowapril / String-Obfuscator-In-Compile-Time

C++ Header only string obfuscator library using metaprogramming. Affine Cipher technique is used for encryption and decryption.
MIT License
153 stars 35 forks source link

clang++ does not obfuscate first 8 bytes of string #2

Open sbredahl opened 5 years ago

sbredahl commented 5 years ago

Hi,

On my macOS 10.15 (Apple clang version 11.0.0) I did this using example/main.cpp:

$ clang++ main.cpp -O3 -std=c++14
$ grep "snowapril" a.out
$ grep "snowapri" a.out
Binary file a.out matches 

So it does not scramble the first 8 bytes of the string. Same thing with Linux Clang++ (clang version 6.0.0) on Ubuntu. However g++ on Linux works just fine!

Maybe not something you can do anything about, but something to be aware of!

/Sune

Snowapril commented 4 years ago

I checked your issue and found some critical problem on clang++ compiler as you said. I'm searching continuously for the differences of constexpr and TMP features between clang++ and Ubuntu but, to be honest, I have no idea about it in my level.

Snowapril commented 4 years ago

Sorry for late reply because of poor environment for developing ( limited availability of computer )