tomwood2
05-28-2011, 03:43 AM
Hello,
I'm trying to set up an ad at my vBulletin website (PHP/MySQL) and the instructions for the SHA1 part of the code is throwing me. Their instructions say:
sig is calculated as follows: sha1(uid price vars description quantity weight your_password). The result will be base64 encoded. Variables that aren't used should be empty and do not have to be part of the calculation. The vars value used in the calculation should not be escaped/URLencoded.
I don't know what the syntax is for entering that many components. I only need vars and your_password. I tried, and it threw this error:
Security signature validation failed! Please notify the referring web site's administrator!
Signature should be: sha1('' . '' . 'zipcode=78759' . '' . '' . '' . '' . '' . '_YOUR_PASSWORD_')
So I changed the code to this:
sha1('' . '' . 'zipcode={vb: raw criteriaDisplay}' . '' . '' . '' . '' . '' . 'my-password')
And it continues to throw the same error. (The {vb: raw criteriaDisplay} is a vBulletin variable that is properly converted to the right number when seen in View Source. I also hard-coded the number and it still throws the same error.)
What is the proper syntax for writing the SHA1 hash with this many components?
I'm trying to set up an ad at my vBulletin website (PHP/MySQL) and the instructions for the SHA1 part of the code is throwing me. Their instructions say:
sig is calculated as follows: sha1(uid price vars description quantity weight your_password). The result will be base64 encoded. Variables that aren't used should be empty and do not have to be part of the calculation. The vars value used in the calculation should not be escaped/URLencoded.
I don't know what the syntax is for entering that many components. I only need vars and your_password. I tried, and it threw this error:
Security signature validation failed! Please notify the referring web site's administrator!
Signature should be: sha1('' . '' . 'zipcode=78759' . '' . '' . '' . '' . '' . '_YOUR_PASSWORD_')
So I changed the code to this:
sha1('' . '' . 'zipcode={vb: raw criteriaDisplay}' . '' . '' . '' . '' . '' . 'my-password')
And it continues to throw the same error. (The {vb: raw criteriaDisplay} is a vBulletin variable that is properly converted to the right number when seen in View Source. I also hard-coded the number and it still throws the same error.)
What is the proper syntax for writing the SHA1 hash with this many components?