Welcome Guest, Not a member yet? Register   Sign In
dohash sha1 diference

I stumbled acros this diference in codeigniter:

If you echo the same string with dohash() and sha1() there is a tiny diference - the '0' at the end of the sha1() string!

echo 'dohash:<br>'.dohash('Hrvoje');
echo '<br>';
echo '<br>';
echo 'sha1:<br>'.sha1('Hrvoje');

I get:



Is this normal, intended or a bug?

Well... it could be a bug, however I can not reproduce it with the same code. Are you sure you have no "0" output after it?

Thanks for the quick replay!
And yes it is a bug - but not in CI Smile

I accidentally left some debugging code, and it echoed that zero at the end :-(

Theme © iAndrew 2016 - Forum software by © MyBB