HNHacker News
TopNewBestAskShowJobs

trekkin

235 karma · joined July 18, 2012

aes.io founder
submissionscomments
trekkin··on Show HN: aes.io - secure storage/collaboration with client-side JS crypto
Thank you! The Matasano article, as I mentioned in another comment, for some reason assumes that SSL is not used, which is not the case with aes.io.
trekkin··on Show HN: aes.io - secure storage/collaboration with client-side JS crypto
Not difficult in theory - classes not supported by GWT (such as iostreams) are easily cut out; but in practice many array operations inside BigInteger needed to be carefully tweaked to work well when compiled into JS.
trekkin··on Show HN: aes.io - secure storage/collaboration with client-side JS crypto
The article assumes that the web service with JavaScript crypto is not using SSL. It explicitly says

"And if you have SSL, why do you need Javascript crypto? Just use the SSL."

aes.io uses SSL _and_ JS crypto on top of it to make sure server-side data is always encrypted, with keys unkown to the server side.

trekkin··on Show HN: aes.io - secure storage/collaboration with client-side JS crypto
The article has many points, but it seems that they can be grouped together around three themes:

1. very easy for MITM-type attacks: this is negated by using SSL

2. JavaScript is too "malleable" for crypto - this argument is not very clear; yes, JS is "malleable" - so what, if we can be reasonably sure it is not "infected", by using server-side tools like signatures and SSL? This is highly debatable...

3. server breaches easily propagate to users: this is a real issue, but it is a real issue with many products that auto-update themselves, such as OSes (with patches/updates), browsers, anti-viruses, etc. Thus although this is a valid concern, it is part of everyday life of most Internet users,and not something JS crypto is specifically bad at.

trekkin··on Watch what you store on SkyDrive–you may lose your Microsoft life
Will do ShowHN when I'm allowed to (getting "You're submitting too fast. Please slow down. Thanks.")

Re: OpenPGP vs PKCS1: historical reasons (have a well-tested code for PKCS1). If at some point it becomes clear that OpenPGP is much better, adding it won't be a big issue.

trekkin··on Watch what you store on SkyDrive–you may lose your Microsoft life
Disclosure: I'm the founder of aes.io :)

To answer your questions:

1. all encryption/decryption is done in JS. BouncyCastle java source code is used (slightly tweaked for performance) - it is compiled into JS using Google's GWT compiler.

2. flash is only used for triggering file save dialog, similarly to downloadify, in browsers that do not support HTML5 alternatives. In Chrome, which supports <a download>, flash is not used (100% JS/HTML5)

3. problems mentioned in the post you referenced can be generalized into two groups: (a) hijacking the server to serve "trojaned code", and (b) inherent JS limitations such as the absence of proper PRNG.

Concern (a) is valid. However, most client systems have auto-updating software products installed, with auto-updating enabled (browsers auto-update themselves; anti-viruses and OSes do the same, etc. - the Flame worm was using Windows Update to sneak in, I think). It is a universal issue in the modern "connected" world, and most users have to live with this threat if they want to use the Internet in any meaningful way; I can't imagine a person eyeballing the source of every patch they compile/apply on their system.

Concern (b) is not really valid now, IMHO. As mentioned above, it is possible to use a solid open-source crypto library either directly (e.g. Stanford Crypto JS library) or compile one into JS, to use proper PRNG, etc. With proper testing (standard/published test vectors; cross-platform tests - encrypt in JS and decrypt in java, etc.) it is possible to make good crypto in JS. And things like side-vector attacks do not look relevant here, as the attacking code needs to run on the client, which means the client has been compromised already.

trekkin··on Watch what you store on SkyDrive–you may lose your Microsoft life
SpiderOak (most similar to drive, dropbox), Tarsnap (nix-only, have to compile it yourself), aes.io (browser-based, like box.com)
trekkin··on Watch what you store on SkyDrive–you may lose your Microsoft life
SpiderOak, Tarsnap, Dropbox + Truecrypt if you don't mind binary clients; web apps with client-side encryption such as aes.io if you don't want to install anything.
trekkin··on Ubuntu is coming back to Dell Laptops
Well, I work at a Linux shop, and I don't know anyone who would buy an AMD laptop to run Linux on it. And it's been more than two months since IvyBridge release, so a laptop that runs SandyBridge is probably not technically new (it can be never used, but already morally old... :)

Yes, this is a kernel issue, already fixed in 3.3.x. But Canonical has no intention of backporting it to 12.04 (3.2 kernel). And we are talking here about "just working", not installing an unsupported kernel manually from a dev repository.

trekkin··on Ubuntu is coming back to Dell Laptops
I have x230, and I have to use a custom kernel, as the standard Ubuntu 12.04 kernel (3.2.x) hangs all flavors (standard/Unity, xubuntu, lubuntu).
trekkin··on Ubuntu is coming back to Dell Laptops
Actually, most of new laptops do not work out of the box with Ubuntu 12.04 - you need to manually compile and/or install a custom Linux kernel in order to avoid hanging, as it is documented here: http://partiallysanedeveloper.blogspot.com/2012/05/ivy-bridg... and here: http://ubuntuforums.org/showthread.php?t=2005305.

For some reason Canonical decided to sacrifice stability and focus on something most users don't think they need (Unity).

trekkin··on How VCs get paid
Exactly. Most VC funds don't bring in huge returns, but VCs still get their millions from those 2%.
trekkin··on Dropbox: yet another security kerfuffle?
Would spideroak be a better option then?
← PreviousPage 3 of 3