• voussoir's avatar
    Fix v1 login by calculating public exp instead of hardcode 257. · 1e96d9b4
    voussoir authored
    The code was using a hardcoded 257 as the RSA public exponent, but
    it was raising RSA Invalid Construct. From reading MEGA's webclient js
    I found that the public exponent sometimes defaults to 257, but in
    other cases is calculated from a modular inverse on the private
    exponent and phi=p-1*q-1.
mega.py 37.1 KB