Friday, March 31, 2017

How do you pull an encrypted e-mail address that is attached on an url?

I am trying to pull out an encrypted email I attached to the end of a url.

I want to get the encrypted email, decrypt it and look for the record which has the same email and pull an id from that table and insert it into another table.

    $password = "hogehoge";
    $gethex = hex2bin($hex);
    $decrypt = openssl_decrypt($gethex, 'aes-256-ecb', $password);
    $user = $this->userinfo->getUserEmail($decrypt);



via Yuya Kawahara

Advertisement