Byte Lab · Level 2 of 5

Same tiles, different dictionaries

Two tiles, read as hex, as base64, and back again.

const buf = Buffer.from('hi');console.log('tiles ' + buf.length);console.log('hex ' + buf.toString('hex'));console.log('base64 ' + buf.toString('base64'));console.log('back ' + Buffer.from('aGk=', 'base64').toString());

1. Predict the output

Tap the lines in the order you think they print.

  1. 1…
  2. 2…
  3. 3…
  4. 4…