Category : encryption

I’m using this xor template to obfuscate some strings, the code is compiling and working, however, IntelliSense throws a lot of ‘errors’ in the console: #include <algorithm> #include <string> template<std::size_t N, class T = std::string> struct BaseXorString { using string_type = T; using char_type = string_type::value_type; char_type encrypted[N]{}; static constexpr unsigned char key = "…"; ..

Read more

I’m writing a substitute cipher program which receives a user inputed string, which it then ciphers using a read only array. const int ARRAY_SIZE = 26; //10 const char cipher[ARRAY_SIZE] = {‘B’, ‘T’, ‘N’, ‘M’, ‘X’, ‘W’, ‘E’, ‘V’, ‘L’, ‘K’, ‘P’, ‘Q’, ‘C’, ‘R’, ‘J’, ‘Y’, ‘Z’, ‘D’, ‘A’, ‘F’, ‘H’, ‘I’, ‘G’, ‘S’, ..

Read more

Building a simple program that multiplies the ASCII value of chars in a string by 3 to encrypt and then divide by 3 to decrypt. So far I got the encryption part down but whenever I enter what the encryption gave and try to decrypt it doesn’t work. I think it has something to do ..

Read more

I am going to use PBC library in my project. I downloaded and succeed to build sample programs. But I don’t know How to encrypt buffers or file with it. Can anyone help me how to encrypt buffer of file using PBC library in c++? Source: Windows Que..

Read more