TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

JCryption - JavaScript data encryption

37 pointsby Oompaalmost 16 years ago

5 comments

tptacekalmost 16 years ago
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 未加载
dryicerxalmost 16 years ago
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 未加载
epealmost 16 years ago
Voted up in hopes that tptacek sees this so I can watch him rip it apart. ;)
评论 #748595 未加载
sweisalmost 16 years ago
This does raw RSA in ECB mode. It is vulnerable to both chosen-plaintext and replay attacks.
yreadalmost 16 years ago
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 未加载