Skip to content

bitwiseAnd

bitwiseAnd(binary1, binary2) → binary · Binary

Perform bitwise AND on two binary values.

  • binary1 (required): first operand

  • binary2 (required): second operand (same length)

utlx
let mask = fromHex("FF00FF00")
let data = fromHex("AABBCCDD")
{
  masked: toHex(bitwiseAnd(data, mask))
}
// Output: {"masked": "aa00cc00"}

Released under AGPL-3.0.