Code Monkey home page Code Monkey logo

xorstr's Introduction

XorStr

A simple constexpr string literal obfuscator. The algorythm was taken from ADVobfuscator.
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

xorstr's People

Watchers

Charles Ma avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.