Skip to content

UauaYeah/crypt-str

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

cryptstr

Simply c++ 17 string encryption

Quick Start

#include "cryptstr.hpp"

int main(void) {
  std::cout << crypt("Hello world!") << std::endl;
}

Assembly output

Without cryptstr encryption

lea rdx, aCryptstr  ; "cryptstr"
mov rcx, cs:?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A ; std::basic_ostream<char,std::char_traits<char>> std::cout

With cryptstr

mov [rbp+100h+var_F8], 0B5h
mov [rbp+100h+var_F7], 0A4h
mov [rbp+100h+var_F6], 0AFh
mov [rbp+100h+var_F5], 0A6h
mov [rbp+100h+var_F4], 0A2h
mov [rbp+100h+var_F3], 0A5h
mov [rbp+100h+var_F2], 0A2h
mov [rbp+100h+var_F1], 0A4h
mov [rbp+100h+var_F0], 0