2.0.2 • Published 8 years ago

buffer-xor v2.0.2

Weekly downloads
11,333,403
License
MIT
Repository
github
Last release
8 years ago

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

browserify-aesvuedragdropuploadimagesphoton-libbb-chat@fundefund/funde_ckgql_din_mod@l1nyanm1ng/react-picture-viewer@evekran/ml-encryptcthpb-plugin-socialcogoportutilsjs4cytoscape@infinitebrahmanuniverse/nolb-buf@saaspe/components@go-hd/op-get@everything-registry/sub-chunk-1271taman-baca-masyarakattanngotest-carosello-campusvue-infinite-loading-propsvue-button-test1webchewebdesa-laravel-final-releasesupercluster-googlemaps-adapter-clonessticky-scroll-catchtestapatest-solidity-npmsvelte-component-libtextfield-samplevue-compmentvcloudcam-playkit-js-hlsvapashjsvernam-cipher-decodevernam-cipher-encodevue-dev-clone@ct-note/table@ct-note/warning@ct-note/image@ct-note/inline-code@ct-note/list@ct-note/marker@ct-note/paragraph@ct-note/quote@ct-note/simple-image@ct-note/checklist@ct-note/code@ct-note/delimiter@ct-note/embed@ct-note/header@cube-design/react@covid19-labs/crypto@borealisswap/borealis-swap-lib@blkmarketco/components-library@beldore/react-otp-input@caneco/siema@rstacruz/pnpm@percent/percent-api-hooks@rbc-public/react-selectable-fastgenerator-bootstrap-boilerplate-templateipfs-kad-routerjesusdemojs-offsjs-utils-jll2iota-paper-encryptionkafirchain-tetris@simstudio/htmldiffdfeuk-frontenddfeuk-frontend-manualdopengine@kangarooswapfinance/v2-corestunstnenopmoc-iustock-ticker-react-widgetsolregex2tingzi-vuepresstinymce-plugin-toyu-librarytristana_common@artiso-solutions/vue-html-to-paper@aurelianoa/metadataupdatable@arkecosystem/crypto@arkecosystem/crypto-transactions@afria/afria-libraries@alessiodf/crypto@alta-ng-timeago/hiamtanh-alta@bancoin/crypto@blockpool-io/crypto@buganto/client@carhoo/widget-dealers@cauriland/crypto@chainsafe/lodestar-beacon-state-transition@classyllama/code-style@chainsafe/eth2.0-state-transition@chakra-swap/core1password-web-api128981semzub@bonsaiswap-lib/lib@bonsaiswapv3/core@bonsaiswapv3/deploy@bowogfc/bbpolymer@devorso/dcountdown
2.0.2

8 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago