Creating MD5 Hashes with openssl or jboss

I am working through the JBoss getting started tutorial, and ran across these two neat methods for creating encrypted passwords to store in a database.

From a Bash shell on Linux (or Cygwin–on windoze):

$ echo -n “j2ee” | openssl dgst -md5 -binary | openssl base64

Or using a class in jboss’s library:

$ java -classpath ./jbosssx.jar j2ee MD5

Interesting stuff.



Posted on November 10, 2005, in programattical. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: