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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What's the most secure cross-platform RNG option?

2 点作者 nulldata超过 11 年前
I'm writing a very encryption heavy piece of software, and security is very important. With the big focus on RNG lately, I've really wanted to know what is the most secure. Hardware is ruled out due to possible backdooring.

4 条评论

tptacek超过 11 年前
Just use /dev/urandom.
throwaway812超过 11 年前
Just read from `&#x2F;dev&#x2F;urandom` (free Unices). It doesn&#x27;t require any 3rd party libraries, always exists, and has a great track record compared to e.g. OpenSSL.<p>&lt;editorializing&gt;On Windows (or proprietary Unix), you can&#x27;t verify the implementation of any option for randomness.&lt;&#x2F;editorializing&gt;
rosenjon超过 11 年前
You could try this out. <a href="http://www.random.org/clients/http/" rel="nofollow">http:&#x2F;&#x2F;www.random.org&#x2F;clients&#x2F;http&#x2F;</a><p>Of course, there is a trust issue with this service potentially. However, supposedly, they use a random noise technique that is &quot;true random&quot;.
评论 #6389475 未加载
andrewcooke超过 11 年前
you ask for cross-platform and you don&#x27;t define &quot;most secure&quot;. so it seems like the &quot;right&quot; answer is the one that is believed to be secure and is as cross-platform as possible. and i think that would be openssl.<p>it&#x27;s famous for causing bugs&#x2F;weaknesses from being used incorrectly, but afaik it&#x27;s secure if used correctly. and it compiles on a wide range of hardware.