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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

JCryption - JavaScript data encryption

37 点作者 Oompa将近 16 年前

5 条评论

tptacek将近 16 年前
I think this library is a great idea. We can add its signature to automated scanning tools, and feed it to Google Code Search queries, and periodically generate lists of catastrophically insecure web applications. I much prefer a single, easily-detected security failure than a diverse population of more subtle failures. Kudos to this guy.<p>I will send a Matasano poster to anybody who posts a valid flaw in actual implementation of this library, excluding the fatal design flaw of delivering encryption code via Javascript to browsers.<p>I'll get you started (I've already got a poster): this library uses PHP's builtin mt_rand() to generate keys.
评论 #748653 未加载
评论 #748655 未加载
评论 #748830 未加载
评论 #749126 未加载
评论 #749166 未加载
dryicerx将近 16 年前
There is no way to validate the public key the data is encrypted against, so a man in the middle is possible by injecting a new public key and intercepting the cypher-text on its way back.<p>Just my though, if this type of security is needed, why forego SSL?
评论 #748470 未加载
评论 #748593 未加载
epe将近 16 年前
Voted up in hopes that tptacek sees this so I can watch him rip it apart. ;)
评论 #748595 未加载
sweis将近 16 年前
This does raw RSA in ECB mode. It is vulnerable to both chosen-plaintext and replay attacks.
yread将近 16 年前
Why do they use RSA? Isn't Diffie-Hellman a better method? Exchange keys by DH and then encrypt traffic symmetricaly. Is it reasonable?
评论 #748735 未加载