mirror of
https://github.com/revsic/cpp-obfuscator
synced 2026-06-08 17:08:30 +00:00
sample, obfs, string: Add samples
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#include "../obfuscator/obfuscator.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
template <char key>
|
||||
constexpr char xor(char c) {
|
||||
return c ^ key;
|
||||
}
|
||||
|
||||
int main() {
|
||||
constexpr auto str = obfs::make_string<xor<0x20>, xor<0x20>>("Hello World !");
|
||||
std::cout << str.decode() << std::endl;
|
||||
}
|
||||
Reference in New Issue
Block a user