projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add node module browserify and asar
[platform/framework/web/crosswalk-tizen.git]
/
node_modules
/
browserify
/
node_modules
/
crypto-browserify
/
node_modules
/
public-encrypt
/
node_modules
/
parse-asn1
/
node_modules
/
browserify-aes
/
node_modules
/
buffer-xor
/
index.js
1
module.exports = function xor (a, b) {
2
var length = Math.min(a.length, b.length)
3
var buffer = new Buffer(length)
4
5
for (var i = 0; i < length; ++i) {
6
buffer[i] = a[i] ^ b[i]
7
}
8
9
return buffer
10
}