Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

simple way of creating SHA1 hash using a static key?

807569Jul 13 2006 — edited Jul 17 2006
I'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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 14 2006
Added on Jul 13 2006
11 comments
419 views