[eluser]J Maxwell[/eluser]
Ok,
It must be the time of night or something, but why would calling sha1 on the same string in two different places produce different values?
In my user library, calling
sha1('steve') gives da39a3ee5e6b4b0d3255bfef95601890afd80709
but if I calculate it in a controller it is giving
sha1('steve') gives 9ce5770b3bb4b2a1d59be2d97e34379cd192299f
Now, call me daft, but I thought that the point of sha1 is that it is reproduceable? This is the same server, calling php's native function, not through the encrypt feature of CI.
Anyone got any ideas?
John