mega-php-client icon indicating copy to clipboard operation
mega-php-client copied to clipboard

Problems with the API

Open DevBayer opened this issue 11 years ago • 2 comments

  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"

DevBayer avatar Dec 29 '13 19:12 DevBayer

  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?

smartinm avatar Dec 30 '13 13:12 smartinm

  1. Okey, so it's normal the delay >_<
  2. The variable "u_privk" generates bad numering and array values finishes with ".0000000000"

DevBayer avatar Dec 30 '13 19:12 DevBayer