Teaspeak-Server/license/shared/crypt.h

6 lines
202 B
C
Raw Normal View History

#pragma once
inline void xorBuffer(char *buffer, size_t bufferLength, const char *xOr, size_t xorLength){
for(int index = 0; index < bufferLength; index++)
buffer[index] ^= xOr[index % xorLength];
}