0

Can i decrypt the password of ion_auth library? i am trying to create a change password module, but instead of just updating their password, i am just gonna show them their password as decrypt.

password : $2y$08$Zc0AwIMQ/rlc67jK18HNqeGt8i7zZOuTpFzcMhaGzjP5UmUHMENY6

$salt       = $this->store_salt ? $this->salt() : FALSE;
$password   = $this->hash_password($password, $salt);

here is how ion_auth encrypt the post password, but can i reciprocate this to instead of encrypting my password, i will decrypt the password that i have in my database?.

any help would be really appreciated.

Janessa Bautista
  • 294
  • 1
  • 13
  • 1
    if you can decrypt `password_hash` as used in line 304 here (https://github.com/benedmunds/CodeIgniter-Ion-Auth/blob/3/models/Ion_auth_model.php#L304) you should report this bug directly to the php team - short answer: _no you can't_ – Atural Oct 19 '19 at 07:34
  • Can't be done, it would be a real security problem if you could. – marcogmonteiro Oct 21 '19 at 20:20

0 Answers0