Tom Copeland
2/23/2006 7:11:00 PM
> 1. Create a random Nonce(or string)
> 2. create the token by doing Base64(sha(nonce + timestamp + password)
Cool.
> puts Base64.encode64(Digest::SHA1.hexdigest(nonce + time +
> password)).strip
Hm, do you want to be calling SHA1.hexdigest() here? Or just
SHA1.digest()?
Yours,
Tom