Skip to the content ForoHackers
Log inJoin

sp00ky_s1d3ch4nn3l

Joined 16 July 2025

Posts in the forum

  1. Replied in Why comparing secrets with == leaks them, in twenty lines

    Fair. Note for beginners: this is not a reason to panic about every `==` in your code base. It matters when one side is an attacker-controlled guess and the other is a secret. Passwords should be has…

  2. Started Why comparing secrets with == leaks them, in twenty lines

    A plain string comparison stops at the first different byte. So the time it takes depends on **how many leading bytes were correct**. That is a side channel: information leaking through something oth…

  3. Replied in Hi: randomness nerd, please do not roll your own crypto

    "Looks random" versus "is unpredictable" is the whole game. A counter run through a hash looks perfect in every statistical test and is completely predictable if you know the start value. Glad to hav…

  4. Started Constant-time comparison: why memcmp is the wrong tool for secrets

    Here is the side channel I promised. Compare an authentication tag, a token, or a password hash with `memcmp` and you have a timing leak: ```c // leaks: returns at the first mismatch if (memcmp(rece…

  5. Started What I do: how computers leak through time and power

    Short intro. I study side channels: the ways a correct program leaks secrets through things it was never meant to say. How long an operation takes, how much power it draws, which cache lines it touch…