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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Calculate MD5, SHA-1 in your browser using HTML5 and WebWorkers

19 点作者 chadkeck超过 13 年前

4 条评论

tptacek超过 13 年前
Why would I want this?<p>By this I mean, what's an end-to-end use case for it? In which a user wants a SHA hash of a file, uses this thing to get it, and then does something with the hash.
评论 #3011384 未加载
评论 #3011593 未加载
HardyLeung超过 13 年前
Try <a href="http://www.hashsum.com" rel="nofollow">http://www.hashsum.com</a><p>It's a Silverlight application I wrote years ago (as a warmup) and it does MD5, SHA1, SHA256, etc. and it is much faster than any Javascript or Flash implementation I've ever seen, including this one.<p>Apology for the very poor Google adsense placement and UI. Yeah it is embarrassing. It was my first introduction to web programming, Google Adsense, and UI, and I've moved on from it long ago. Needless to say I have learned a lot since then.<p>Hashsum can handle much bigger files than 10MB. In fact, for a file that small, you won't even notice that it did anything. Try something bigger, like a DVD-sized ISO (4.7GB) which will take about 1 or 2 minutes. All computation is done on the client side.<p>Anyone who claims Javascript is "as fast as C/C++" should at least try to beat Hashsum, which is only C# based.<p>Sadly, Microsoft is putting an end to this amazing technology, but that's another story.
Zash超过 13 年前
From the blog post:<p><pre><code> &#62; * Internet connection required (for now). </code></pre> There's this thing called caching. ;)<p>Also, cache manifest.
评论 #3011483 未加载
ericb超过 13 年前
What is the license? I haven't looked too closely yet, but I might want to borrow some of the JS for a firefox plugin where I'd want to calculate hashes.
评论 #3011447 未加载
评论 #3011445 未加载