4 ms·
Why wouldn't you run MD5 with binary output, then convert the output to base 62? That's ~21 digits in base 62 and doesn't require figuring out your own hashing
by bkrausz 16y ago
Why wouldn't you run MD5 with binary output, then convert the output to base 62? That's ~21 digits in base 62 and doesn't require figuring out your own hashing function.
- KevBurnsJr 16y agoFor shorter 5-6 char strings. Ala tinyurl slugs.
- bkrausz 16y agoYou can truncate the md5 base 62 string to anything you want after that...you're still going to have approximately as much uniqueness as his hash.
- KevBurnsJr 16y agomd5 truncation will not guarantee avoidance collision. This does.