MCPcopy
hub / github.com/gchq/CyberChef / xor

Function xor

src/core/lib/Blowfish.mjs:252–254  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

250////////////////////////////////////////////////////////////////////////////
251// fixes based on patch submitted by Peter Wood (#5791)
252const xor = function(x, y) {
253 return (((x>>0x10)^(y>>0x10))<<0x10)|(((x&0xffff)^(y&0xffff))&0xffff);
254};
255
256
257const f = function(v, box) {

Callers 3

ebFunction · 0.70
dbFunction · 0.70
runMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected