Quote:
Originally Posted by Opserty
|
Thank you for your quick reply
I should have made it clearer - I know how to get the userid and salt etc, but concatt hem all together doesn't make the security token. What I guess I need to know is what the sha1(x) thing is doing to those individual elements to make the componenent parts.
edit -- wikipedia to the rescue -- just need to see if some lovely person has written a perl modult
cheers all
--------------- Added [DATE]1213268247[/DATE] at [TIME]1213268247[/TIME] ---------------
Perl modules found for any one else wanting them
http://search.cpan.org/search?query=sha1&mode=all
--------------- Added [DATE]1213272299[/DATE] at [TIME]1213272299[/TIME] ---------------
I'm going to have to give up on this.
Let me double check.
First I presume sha1 is hex judging by token I have
OKay So I sha1 the user's salt (which is a three character string, of various types, yes?) -lets say it comes out as AAAAA
then I sha1 the cookiesalt, which is the same as my vb license as show at the top of functions.php - lets say the result is BBBBB.
The userid, which is a variable length number - my admin one is '1', so i'll use that as an example
the resultant string is 1AAAAAABBBBBB, which i then sha1
is this corrent, or am i reading the whole thing wrong
thanks for any help
cheers