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

[eluser]HrvojeKC[/eluser]
Hi!
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!

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

I get:

dohash:
cdc84bff3d4530ff7642f446387ce850631f1251

sha1:
cdc84bff3d4530ff7642f446387ce850631f12510



Is this normal, intended or a bug?


Messages In This Thread
dohash sha1 diference - by El Forum - 03-23-2008, 03:19 PM
dohash sha1 diference - by El Forum - 03-23-2008, 03:23 PM
dohash sha1 diference - by El Forum - 03-23-2008, 03:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB