Skip to Main Content

New to Java

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!

random password

807597Jan 11 2005 — edited Jan 12 2005
Hi all

I need help in getting random password from a string.

String SPasswordAlphabet = // Allowed characters in password space
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789~!@#$%^&*()_+`-={}[]|:;,./<>?";

Given the above variable, I need to create a string password with randomised letter from it. The password min size must be 10 and the max size is 20.

Could any 1 kindly help me??
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2005
Added on Jan 11 2005
16 comments
187 views