Code Monkey home page Code Monkey logo

compiletime-string-encryption's Introduction

CompileTime-String-Encryption

C++ 17 compile time string encryption supporting vs2010-2019. Rewrite and update of: https://github.com/stevemk14ebr/VS2013-Compile-Time-XOR

Changelog compared to other repo

  • File parsing supports widechars, UTF-8 recommended
  • Directory resolution and redirection fixed to support source files in folders
  • Extensive use of C++ features instead of C apis (filesystem, stringstreams, regex, etc)
  • Temp files are now stored along-side originals with _crypt postfix. By-product of fixing directory resolution
  • Xor header no longer needs to be included, it is injected automatically
  • Use after destruction bug fixed. XorStr now returns std::string
  • Xrefkiller removed, it was unstable.

Setup

  1. This hooks the compilers wsopen_s api at runtime using my polyhook library. A (old, but known good) version of polyhook is included, you must build the capstone libs.
  2. Build this project
  3. Find you c1xx.dll in the visual studio installation directory. Use CFF explorer to add a new import address table entry for the dll built by this project
  4. Copy the correct versions of the capstone dll and the dll from this into the same directory as your c1xx.dll
  5. Make a new visual studio project and copy the .editorconfig file to the root. This forces VS to save your source files as UTF8
  6. #define ENC(x) x where you want to use encrption, compile, and enjoy

compiletime-string-encryption's People

Contributors

stevemk14ebr 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.