aboutsummaryrefslogtreecommitdiff
path: root/client/src/util/xor.h
blob: 1ae1ce2f9c1e33dee249320f05840b039fbf1a66 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

namespace enc {
constexpr size_t key_num = 50;

char gen_key();

// XOR keys at the beginning of the message for clients
void encrypt_message(std::string &str);

// XOR keys at the end of the message for server messages
void decrypt_message(std::string &str);

}  // namespace enc