buffer-xor icon indicating copy to clipboard operation
buffer-xor copied to clipboard

A simple module for bitwise-xor on buffers

Results 5 buffer-xor issues
Sort by recently updated
recently updated
newest added

could you remove buffer for a smaller bundle and making it a dependency free version of NodeJS?

``` module.exports = function xor (a, b) { var length = Math.min(a.length, b.length) var buffer = new Buffer(length) for (var i = 0; i < length; ++i) { buffer[i] =...

``` xor(Buffer.from('7f5022b7e361a9ef34f2792b045bf413a985f8caf7978e67027dbb01b137b67d', 'hex'), Buffer.from('C8834C1FcF0Df6623Fc8C8eD25064A4148D99388', 'hex')) ``` gives the wrong value. The answer should be ```7f5022b7e361a9ef34f2792bccd8b80c66880ea8c85f468a277bf140f9ee25f5```, but it gives ```b7d36ea82c6c5f8d0b3ab1c6215dbe52e15c6b42f7978e67027dbb01b137b67d``` The reason is that it doesn't zero pad it from the...

Added power support for the travis.yml file with ppc64le. This is part of the Ubuntu distribution for ppc64le. This helps us simplify testing later when distributions are re-building and re-releasing

XORing 2 Buffers should respect the two following rules: * xor(xor(a, b), a) = b * xor(xor(a, b), b) = a When **a** has more characters than **b** the second...