Skip to content
03Distributed Ledger StudioPSUT · Blockchain for IoT
Distributed Ledger Studio

CR60 · XOR and rotated-XOR toy hash

The toy digest starts at zero. For each input byte b, rotate the 8-bit state left r places then XOR with b: h_i = ROTL8(h_(i−1),r) XOR b. With r=0, order is irrelevant and equal bytes cancel. This is a deliberately weak construction, not a cryptographic hash. ABBA with rotation zero yields 00 because A XOR A = B XOR B = 0. Rotation 1 changes the intermediate states.

Available on another course website

Full content is maintained in IoT Security and Privacy. Configure its deployment URL in course-hosts.js.

Open owning course →

Return to this course catalogue