Work in progress: 181,232 of 181,233 sites checked so far, more every week · updated 2 Nov 2026Missing a blog? Tell us

Top all-time · #5934

C

Chosen Plaintext

Personal blog · chosenplaintext.casecurityprogramming

Chosen Plaintext is a personal blog at chosenplaintext.ca about security and programming. Since 2015, 13 different Hacker News readers have linked it 14 times, most often “The radix 2^51 trick (2017)”. The last post was in 2017, but the archive is still widely read.

Visit the blog
14mentions?
13HN people?
2015–2026first – last linked?
Links on Hacker News per year · peak 4 in 2022

Too few sampled comments (4) to say how often HN recommends it.?

Why HN links it

HN commenters link Chosen Plaintext's posts on security and low-level coding: JWT pitfalls, timing attacks, constant-time code for crypto, and a radix-2^51 arithmetic trick. The comments cite these posts as references.

Summarised by Claude from a sample of 4 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.

Most-linked posts?

  1. The radix 2^51 trick (2017)
    6 people · 6 mentions · first linked 2020-05-29
  2. A beginner's guide to constant-time cryptography (2017)
    5 people · 5 mentions · first linked 2017-04-23

What Hacker News says?

  1. The none issue was highlighted by Tim McLean 2 years ago [0] and comes up in any trivial search about JWT. Surprised that anyone who chooses to use JWT is still getting caught by it as, as you say, any half decent library mitigates this. For me, the log out / cross device session management issue seems to force a pattern of short expiry with self refreshing tokens. Commonly used devices feel always logged in, wherea…

    Comment linking /2015/03/31/jwt-algorithm-confusion.html

    on “JSON Web Tokens should be avoided”
  2. Submitted The radix 2^51 trick (2017) as a story · 518 points

    HN discussion
  3. Random time jitter can be denoised with statistics and a large enough sample size. Even if it weren't when you sleep the machine now has more resources to process requests and an attacker can observe this to deduce information about the secret. Ultimately you want the resources consumed by computation handling secret information to always be equivalent. Of course this means swimming upstream of decades of programmin…

    Comment linking /articles/beginners-guide-constant-time-cryptography.html

    on “Timing Attacks”
  4. Submitted The radix 2^51 trick (2017) as a story · 431 points

    HN discussion
  5. The only thing I could think of is when writing crypto code, you want your execution time to be constant for all inputs to avoid timing related attacks (e.g. https://www.chosenplaintext.ca/articles/beginners-guide-cons... )

    Comment linking /articles/beginners-guide-constant-time-cryptography.html

    on “Branchless Coding in Go”
  6. Submitted A beginner's guide to constant-time cryptography (2017) as a story · 119 points

    HN discussion
  7. taking architecture that explicitly removed carry flag for performance and then trying to to emulate carry flag anyway was stupid in 2021 and is still stupid today even on x64 you get better performance when you don't use carry flag and just use limbs https://www.chosenplaintext.ca/articles/radix-2-51-trick.htm... - risc-v is even more so

    Comment linking /articles/radix-2-51-trick.html

    on “The Zilog Z80 has turned 50”
  8. Submitted The radix 2^51 trick as a story · 51 points

    HN discussion
  9. Submitted A beginner's guide to constant-time cryptography as a story · 5 points

    HN discussion
  10. Submitted The design flaw in PBKDF2 as a story · 3 points

    HN discussion
  11. Submitted Escaping callback hell as a story · 3 points

    HN discussion
  12. Submitted The radix 2^51 trick as a story · 2 points

    HN discussion
  13. Submitted The radix 2^51 trick (2017) as a story · 2 points

    HN discussion
  14. Submitted A beginner's guide to constant-time cryptography as a story · 1 points

    HN discussion

Search all of HN for chosenplaintext.ca

Linked by the same people?