I’ve got a numbers puzzle for someone out there.
I’m currently trying to implement X-WSSE authentication, which
basically means you follow these steps to create a PasswordDigest:
- Create a random Nonce(or string)
- create the token by doing Base64(sha(nonce + timestamp + password)
Use this string to autenticate. Basically. Now here’s my problem.
I have an example to work from:
Timestamp = 2006-02-23T18:56:31Z
password = test
I know the result is supposed to be:
267V1V5JW5xqct0bOAoFEaSDL7Y= (since this works)
But when I use ruby for this:
time = “2006-02-23T18:56:31Z”
password = “test”
puts Base64.encode64(Digest::SHA1.hexdigest(nonce + time +
Can anyone see the step I'm missing? Thanks,