All Projects → crypto-browserify → buffer-xor

crypto-browserify / buffer-xor

Licence: MIT License
A simple module for bitwise-xor on buffers

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to buffer-xor

as-string-sink
An efficient dynamically sized string buffer (aka String Builder) for AssemblyScript
Stars: ✭ 23 (-14.81%)
Mutual labels:  buffer
EmbeddedRingBuffer
A ring buffer designed to work with embedded devices, does not use heap allocations.
Stars: ✭ 47 (+74.07%)
Mutual labels:  buffer
popc
Popc manager for vim & neovim
Stars: ✭ 17 (-37.04%)
Mutual labels:  buffer
typedarray-to-buffer
Convert a typed array to a Buffer without a copy.
Stars: ✭ 64 (+137.04%)
Mutual labels:  buffer
JABS.nvim
Just Another Buffer Switcher for Neovim
Stars: ✭ 150 (+455.56%)
Mutual labels:  buffer
buffertools-php
Toolbox for working with binary and hex data. Similar to NodeJS Buffer.
Stars: ✭ 60 (+122.22%)
Mutual labels:  buffer
zlib
Pure javascript implementation of Zlib nodejs core module.The zlib module provides compression functionality implemented using Gzip and Deflate/Inflate.
Stars: ✭ 14 (-48.15%)
Mutual labels:  buffer
k8s-log
容器日志搜集套件。
Stars: ✭ 15 (-44.44%)
Mutual labels:  buffer
CuVec
Unifying Python/C++/CUDA memory: Python buffered array ↔️ `std::vector` ↔️ CUDA managed memory
Stars: ✭ 73 (+170.37%)
Mutual labels:  buffer
c-struct
a binary data packing & unpacking library for node.js
Stars: ✭ 42 (+55.56%)
Mutual labels:  buffer
ipt xor
iptables xor module
Stars: ✭ 15 (-44.44%)
Mutual labels:  xor
sirdez
Glorious Binary Serialization and Deserialization for TypeScript.
Stars: ✭ 20 (-25.93%)
Mutual labels:  buffer
sharon
A lightweight and modular social sharing library
Stars: ✭ 16 (-40.74%)
Mutual labels:  buffer
lua-simple-encrypt
Lua simple XOR encrypt
Stars: ✭ 60 (+122.22%)
Mutual labels:  xor
unkillable-scratch
Disallow the *scratch* buffer from being killed
Stars: ✭ 13 (-51.85%)
Mutual labels:  buffer
to-ico
Convert PNG to ICO in memory
Stars: ✭ 115 (+325.93%)
Mutual labels:  buffer
Binary-Calculator-JavaScript
📱 A handy Calculator for Binary operations, that works on all Devices 📱 💻 🖥 | ⛓ https://play.google.com/store/apps/details?id=com.binarycalculator.ayidouble.binarycalculator.app ⛓
Stars: ✭ 45 (+66.67%)
Mutual labels:  xor
How-to-use-C-in-NodeJS-through-CPP
🤓 How to write C code in NodeJS using C++ as a pass through?
Stars: ✭ 50 (+85.19%)
Mutual labels:  buffer
datamosh
✨💾 Edit images via buffers. 💯✨
Stars: ✭ 23 (-14.81%)
Mutual labels:  buffer
Keras-Android-XOR
How to run a Keras model on Android using Tensorflow API.
Stars: ✭ 32 (+18.52%)
Mutual labels:  xor

buffer-xor

NPM Package Build Status

js-standard-style

A simple module for bitwise-xor on buffers.

Examples

var xor = require('buffer-xor')
var a = new Buffer('00ff0f', 'hex')
var b = new Buffer('f0f0', 'hex')

console.log(xor(a, b))
// => <Buffer f0 0f 0f>

Or for those seeking those few extra cycles, perform the operation in place with xorInplace:

NOTE: xorInplace won't xor past the bounds of the buffer it mutates so make sure it is long enough!

var xorInplace = require('buffer-xor/inplace')
var a = new Buffer('00ff0f', 'hex')
var b = new Buffer('f0f0', 'hex')

console.log(xorInplace(a, b))
// => <Buffer f0 0f 0f>

// See that a has been mutated
console.log(a)
// => <Buffer f0 0f 0f>

License MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].