TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Random Strings and Integers That Aren’t

26 点作者 samsk将近 5 年前

2 条评论

Sharlin将近 5 年前
Should be common knowledge, but please avoid using 1, I, l, O, and 0 in codes such as these.
评论 #23986144 未加载
评论 #23986157 未加载
评论 #23986609 未加载
SloopJon将近 5 年前
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.