UNPKG

@n3okill/utils

Version:
9 lines (8 loc) 299 B
/** * 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;