SkillAgentSearch skills...

Xorstr

A simple constexpr string literal obfuscator.

Install / Use

/learn @qis/Xorstr
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

XorStr

A simple constexpr string literal obfuscator. The algorythm was taken from ADVobfuscator.<br/> This technique does not hide strings from sophisticated static analysis tools and memory inspection.

Usage

Copy the file <include/xorstr.h> to your project and include it in the source code.

#include <xorstr.h>
#include <iostream>

int main() {
  const std::string str = xorstr("xorstr_test_verify_error");
  std::cout << str << std::endl;
}

You can verify that the string xorstr_test_verify_error does not exist in Release builds:

$ strings build/llvm/release/main | grep xorstr_test_verify_error
$ strings build/llvm/debug/main | grep xorstr_test_verify_error
xorstr_test_verify_error
$ strings build/msvc/Release/main.exe | grep xorstr_test_verify_error
$ strings build/msvc/Debug/main.exe | grep xorstr_test_verify_error
xorstr_test_verify_error
View on GitHub
GitHub Stars127
CategoryDevelopment
Updated6d ago
Forks23

Languages

C++

Security Score

95/100

Audited on Mar 28, 2026

No findings