Split tokens in Clojure

On Dhole Moments, there’s a nice post about a recent Lobste.rs password reset vulnerability. Via the post, I learned about a simple technique called split tokens for making your password reset token validation more resistant to timing attacks. I wanted to poke at it a bit and ended up creating a tiny Clojure library for generating and validating split tokens, called split-token. Check it out if you’re into generating random tokens!


About the author: My name is Miikka Koskinen. I'm an experienced software engineer and consultant focused on data-heavy backends, scaling data without drama, and team work in the AI era.

Could you use help with that? Get in touch at miikka@jacksnipe.fi.