simple way of creating SHA1 hash using a static key?
807569Jul 13 2006 — edited Jul 17 2006I've been searching the forum and googling for how to do this, but from what I can tell most of the implementations I've found are more complex than I think I need.
I'm connecting to a third party web site and one of the options for single sign on is sending over a hash of the required information. The hash will be created based on a key that I specificy in an admin section on their site so it is known by both sides.
Can anyone point me to some code that might already do this?
For example:
Shared Key = abcdef123456789
Information to be sent in hash:
[username][password][date][time]
So the hash is created from the information above and is sent in the url to the third party site. The receiving site will decode the hash using the same key.
Any help is appreciated.
James