NodeCrypto Help

Bit Inversion (NOT)

Category: Utility ยท Node Type ID: utility-bitwise-not

Inverts all bits (One's Complement, ~) of the input bytes

Overview

Computes the bitwise one's complement (NOT, ~) of the input byte array by inverting every bit in every byte (byte ^ 0xFF). The output buffer has the exact same byte length as the input buffer.

When to Use

Parameter Configuration

Bitwise NOT requires no configuration parameters; it unconditionally inverts all 8 bits of each byte in Data.

Port I/O Specification

See Ports & Connections for general wiring rules, data type colors, and dynamic port creation.

Input Ports

Port Nature: Fixed Input Ports (1 total).

Port NamePort IDData TypeRequiredVisibility ConditionDescription
Data data Bytes Required Always visible Input byte array (Uint8Array) whose bits will be inverted.

Output Ports

Port Nature: Fixed Output Ports (1 total).

Port NamePort IDData TypeVisibility ConditionDescription
Inverted inverted Bytes Always visible

Error Cases

This node has no runtime failure cases (errorProfile: none) and always succeeds for any valid typed input.

Examples

Inverting a 4-Byte Mask

Flip all bits of 0xFF00AA55 to produce 0x00FF55AA.

  1. Connect ff00aa55 to Data; Result outputs 00ff55aa.