TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Random Strings and Integers That Aren’t

26 pointsby samskalmost 5 years ago

2 comments

Sharlinalmost 5 years ago
Should be common knowledge, but please avoid using 1, I, l, O, and 0 in codes such as these.
评论 #23986144 未加载
评论 #23986157 未加载
评论 #23986609 未加载
SloopJonalmost 5 years ago
This post is in the context of a PostgreSQL stored procedure. If you have ready access to a block cipher, you could use one with an appropriate block size; e.g., 32-bit RC5 for coupon codes, 128-bit AES for activation keys, or 64-bit Blowfish for something in between.