Hacker News new | ask | show | jobs
by junon 1250 days ago
> they can be easily defeated

How? I mean they're of course no cryptographic measure but with the salt you have some secrecy.

1 comments

If an attacker can generate sequential hashids, they can decipher the alphabet order that hashids use without needing to know the seed, and then use the seed to invert other hashids.

I wrote a library that generates short IDs with the goal of making the similarity between two codes have nothing to do with sequence order.

https://docs.rs/block-id/latest/block_id/