Skip to Main Content

Java Security

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!

How to encrypt/decrypt passwords?

843810Feb 14 2003 — edited Jul 5 2007
Hi!
I want to store some usernames and passwords in a file.
I want to use the MD5 or the SHA-1 algorithm.
What classes in the JAVA Cryptography API should I use?
I thought about a MessageDigest, but then I recognized that I can not decrypt the data with a MessageDigest! What else can I use?

I would be very glad if you could give me some hints.
Thx

Comments

Talya,

Can you elaborate your usecase on why would you want to do that? Can't you pass them as parameters to the child TF?

-Arun

Shay Shmeltzer-Oracle

You shouldn't be directly accessing a containing page values from a task flow. This will create a situation where your task flow is only usable in a single page.

Instead define parameters to your task flow and pass those from the containing JSF.

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 1 2007
Added on Feb 14 2003
17 comments
610 views