August 2, 2006

You are currently browsing the daily archive for August 2, 2006.

MD5 Encoding

By using the MD5 Encoding, we can create encryted password using message digest technology. To do this, we can make use of utility provided by JBoss. See the following:

If you need to generate passwords in code, the org.jboss.security.Util class provides a static helper method that will hash a password using a given encoding.

String hashedPassword = Util.createPasswordHash("MD5",
                                                Util.BASE64_ENCODING,
                                                null,
                                                null,
                                                "password");

OpenSSL provides an alternative way to quickly generate hashed passwords.

echo -n password | openssl dgst -md5 -binary | openssl base64

In both cases, the text password should hash to “X03MO1qnZdYdgyfeuILPmQ==”. This is the value that would need to be stored in the user store.

The about org.jboss.security.Util class can be found in the jbossx.jar shipped with JBoss Application Server.

Reference:

http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch8.chapter.html

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • Technorati
  • YahooMyWeb

I have just joined an online course talking about AJAX.

AJAX is a new term meaning Asychronous Javascript and XML, which we can see from the name, it is composed of at least javascript and XML, also HTML, DOM, etc. AJAX helps to send small amount of data without refreshing the whole web page upon request. As a result, it provides a better web surfing experience.

I want to learn about the actual programming technique some times ago. Let see, if you can create an application just like Gmail, which performs just like Outlook on your computer, it’s so great and powerful.

Now, I’m also looking for some class mates which can work together. Hope that in the coming 10 weeks, I can learn a lot and know some new friends in this IT World.

10-week AJAX Training Course by Sang Shin - http://www.javapassion.com/ajaxcodecamp/

AjaxWorkShop - http://www.theajaxworkshop.com/index.php/Main_Page

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • Technorati
  • YahooMyWeb

« Older entries

 

August 2006
S M T W T F S
« Jul   Sep »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories