[eluser]Unknown[/eluser]
Hello guys, i am a noob on this, i just want to know how I check encrypted data:
is for a basic password into database, not extreme security is needed.
Code:
$crypted = $this->encrypt->sha1($myvalue);
i save $crypted into a database field,
now i wish to check that user input is = to $crypted ....
will this work?
Code:
if( $crypted == $this->encrypt->sha1($uservalue) ) :
//do stuff
endif;
Thanks to this great community in advance
Diego