News for hackers. Stuff that matters.
Re:Megabad: A quick look at the state of Mega’s encryption by simias on Monday January 21, 2013 @11:21AM (#5092091)
I don't understand that part:

Symmetric encryption means the same key is used to encrypt and decrypt your data; this is less secure than asymmetric encryption (where one key encrypts and a different key decrypts), but it's faster and easier to implement.

Isn't that comparing apples to oranges? What would be the benefit for Mega or the user to switch to RSA for that? Encryption would be using a symmetric cipher anyway, unless I'm missing something.

Re:Megabad: A quick look at the state of Mega’s encryption by tptacek on Monday January 21, 2013 @11:22AM (#5092100)
Block ciphers are not "less secure" than RSA. If anything, the opposite is true. You can ignore this part of the article.
Re:Megabad: A quick look at the state of Mega’s encryption by shin_lao on Monday January 21, 2013 @11:24AM (#5092106)
You're not missing anything. I clenched my teeth when I red this phrase. It doesn't mean anything and discredits the whole article as it shows the author has got a superficial knowledge in cryptography.
Re:Megabad: A quick look at the state of Mega’s encryption by tptacek on Monday January 21, 2013 @11:27AM (#5092126)
Generating RSA keys with math.Random is clown crypto, though.
Re:Megabad: A quick look at the state of Mega’s encryption by simias on Monday January 21, 2013 @11:36AM (#5092170)
Isn't in-browser crypto clown crypto by definition though?

After all, unless you audit all the code fetched each time you load the page, they can mess with the code client side at any moment without anybody noticing. Is this not more telling about the limits of webdev rather than the skills of Mega's coders?

Re:Megabad: A quick look at the state of Mega’s encryption by tptacek on Monday January 21, 2013 @01:51PM (#5092981)
There are smart people who disagree with me, like Ben Adida at Mozilla, but as a general rule yes, doing crypto inside a browser with Javascript is clownish.

I haven't studied what Mega is doing at all, nor am I ever planning to; my point is just that however badly written the article is, there is indeed evidence that there's bad crypto in this system.

Re:Megabad: A quick look at the state of Mega’s encryption by daeken on Monday January 21, 2013 @11:45AM (#5092216)
The trust model is inherently broken when doing crypto in the browser the way they are, since the code could be changed at any time. But that doesn't mean you shouldn't implement things properly outside of that.
Re:Megabad: A quick look at the state of Mega’s encryption by shin_lao on Monday January 21, 2013 @01:16PM (#5092772)
What do you mean by the code could be changed at any time.

AFAIK this applies to any software.

Re:Megabad: A quick look at the state of Mega’s encryption by daeken on Monday January 21, 2013 @01:19PM (#5092789)
Every time you visit the website, the crypto code is brand new to you. A site that securely and safely encrypted your data yesterday might be sending keys to the server tomorrow. This is a problem that's fairly unique to doing crypto on the client side in the browser.
Re:Megabad: A quick look at the state of Mega’s encryption by bluegate010 on Monday January 21, 2013 @12:58PM (#5092690)
That's what Mega seems to be doing in their initAll() function, although since it's being audited with Javascript, it's still insecure.
Re:Megabad: A quick look at the state of Mega’s encryption by ZeroGravitas on Monday January 21, 2013 @12:00PM (#5092296)
Is it clown-crypto from the point of view of creating plausible deniability for Mega, or only from the point of view of keeping what your uploading secret from Mega? Genuine question.
Re:Megabad: A quick look at the state of Mega’s encryption by DoubleMalt on Monday January 21, 2013 @12:32PM (#5092511)
I stopped reading the article right there. This shows such a blatant misunderstanding of encryption that it's not even funny any more.
Re:Megabad: A quick look at the state of Mega’s encryption by summerdown2 on Tuesday January 22, 2013 @02:54PM (#5099187)
It's now been changed to:

> Symmetric encryption means the same key is used to encrypt and decrypt your data; this less computationally-intensive and easier to implement than asymmetric encryption, which we'll get to in a moment.