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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

UUIDs are a valid security tool

1 点作者 stevecalifornia超过 1 年前

1 comment

fargle超过 1 年前
what?!?!<p>why would you use a UUID for this? A version 4 UUID does have about 122 random bits, so it could work OK for this use case. But firstly, it&#x27;s unnecessarily short. And secondly, <i>why</i>? FFS, WHY?<p>Why not just use a random number with the length of your choosing, encoded in hex, base-64, or whatever floats your boat?
评论 #37771857 未加载