Mega uses JS crypto to generate RSA keys, collects entropy via mouse/keystrokes, uses AES (SJCL) — exactly like old versions of Cryptocat.

— Nadim Kobeissi (@kaepora) January 19, 2013