sample, obfs, string: Add samples

This commit is contained in:
revsic
2019-02-15 05:07:38 +09:00
parent b3650d73f8
commit 5e4df4dd7e
+13
View File
@@ -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;
}