smartinm / mega-php-client

MEGA PHP Client Library
102 stars 44 forks source link

Problems with the API #7

Open DevBayer opened 10 years ago

DevBayer commented 10 years ago
  1. Delay when prepare key for login, I have understood that is problem of openssl/mcrypt for the encrypt, an alternative for reduce the delay?
  2. The "false-positive" when login, I believe that the problem lies with the "prepare key" that generate an sid BAD, you can see when the sid start with "AAAAAA"
smartinm commented 10 years ago
  1. The delay during user login is normal, the prepare_key function initialize the key from plaintext password doing 65536 iterations of the full AES block cipher. Mcrypt encrypt rijndael-128 performance is ~0.0005 seconds for 1 iterations. You can use MEGA::session_save() and MEGA::create_from_session() to avoid to login every time.
  2. I cannot reproduce this problem. Can you give more info on this?
DevBayer commented 10 years ago
  1. Okey, so it's normal the delay >_<
  2. The variable "u_privk" generates bad numering and array values finishes with ".0000000000"