I am trying to login using codeigniter, but not able to do so. Then i tried to copy password from DB and pass it to dycription->decode() function, and it's returning empty string.
Here is the code
var_dump($this->encryption->decode('s0xxxxxxXjrUxxxxxxBTxxxxhc'));
output was: string(0) ""
And this code also returning empty strings
$decoded_password = $this->encryption->decode($encoded_password);
$decoded_username = $this->encryption->decode($encoded_username);
What i am doing wrong here?
UPDATE: i tried encrypting a string and PRINT IT then decrypt and PRINT, After encryption it returns NULL/Empty and after decryption it returns NULL/Empty (Obvious). Code is below
$encval = $this->encryption->encode('codeigniter');
echo $encval.' -- IT WAS --'.'codeigniter';
echo "<br>---------------------------------------------------<br>";
echo $this->encryption->decode($encval);
OUTPUT: ^Nothing