by d2 · 15y ago · 0 comments
We've been doing this on the desktop for years.
I'd like to pose a question to the authors:
Don't all the premises you've based "Javascript Cryptography Considered Harmful" on apply equally to downloaded desktop software?
-A chicken egg problem
-A malleable runtime for apps with admin access
-Code verification being defeated by other hostile apps on the system
-Inability to trust the secure keystore because of the chicken-egg problem and other hostile apps installed prior to the crypto app's installation.
-The weakness of pseudo-randomness
It didn't hold up well against attack there but there was usually an underlying bit of assumed trustworthiness on the local network that shifted the blame.
But protocols designed for enterprise desktops always turn out to be an unmitigated disaster when run across a hostile internet, particularly from a security perspective.
Then again, the original version of it, when it was designed for enterprise desktops, would not be particularly effective.
It may work acceptably for VPN-like applications, but how does it work for actual internet applications? E.g., how do you enroll new clients into the authentication realm over the internet?
The problem with enrollment is more or less the same as the problem with enrollment using any other crypto trust scheme. In the most secure situation, you'll want to start the process in person.
In practice, with kerberos you have to trust the KDCs holding your keys. With asymmetric systems, you have to trust the CAs who have signed the keys of the parties you are communicating with.
I agree that it isn't a good solution for what we might call "web scale" applications. It is a reasonable way to do password authentication, but federated authentication would require establishing cross-realm trust between identity providers and relying parties.
This isn't a value judgement on Javascript. I like Javascript. The hard fact of the matter is, not every good programming environment is going to be suitable for cryptography.