@n3okill/utils
Version:
Many javascript helpers
9 lines (8 loc) • 299 B
TypeScript
/**
* Returns the XOR result of two Buffer's.
* If the two Buffer's are of different lengths, the shorter one will be padded to the length of the longer one.
* @param token1
* @param token2
* @return the XOR result
*/
export declare function xorTokens(token1: Buffer, token2: Buffer): Buffer;