Keytool to encrypt username password

Hi,Can someone please help me in how to encrypt username and password using java keytool. Any help is appreciated.Thanks
[141 byte] By [whitesox12a] at [2007-11-27 5:56:46]
# 1
Here's a helpful link: http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html
Dalzhima at 2007-7-12 16:28:00 > top of Java-index,Java Essentials,Java Programming...
# 2
and as as quick and hopefully helpful note - encrypting a user's username and password is not what keytool is for.
tsitha at 2007-7-12 16:28:00 > top of Java-index,Java Essentials,Java Programming...
# 3
and encrypting passwords is not what anything is for. Passwords should be digested, not encrypted.
ejpa at 2007-7-12 16:28:00 > top of Java-index,Java Essentials,Java Programming...
# 4

> and encrypting passwords is not what anything is for.

> Passwords should be digested, not encrypted.

Indeed. I would suggest using the "large intestine" (also called the colon algorithm). On a more serious note, you may also want to look into MD5, MD6 and SHA, though - MD5 is no longer considered to be a good choice.

Navy_Codera at 2007-7-12 16:28:00 > top of Java-index,Java Essentials,Java Programming...