MCPcopy Create free account
hub / github.com/BlazingDB/blazingsql / encryptDecrypt

Function encryptDecrypt

io/src/Util/EncryptionUtil.cpp:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "EncryptionUtil.h"
8
9static std::string encryptDecrypt(const std::string & value) {
10 char key = 'Q';
11 std::string rotation;
12 rotation.reserve(value.size());
13 for(const auto chr : value) {
14 rotation.push_back(chr ^ key);
15 }
16 return rotation;
17}
18
19namespace EncryptionUtil {
20

Callers 2

encryptFunction · 0.85
decryptFunction · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected