Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaÃÜÂë¼ÓÃÜ


Java´úÂë
package com.sunnylocus.util;   
  
import java.security.MessageDigest;   
  
/**   
 * ¶ÔÃÜÂë½øÐмÓÃܺÍÑéÖ¤µÄÀà  
 */  
public class CipherUtil{   
       
    //Ê®Áù½øÖÆÏÂÊý×Öµ½×Ö·ûµÄÓ³ÉäÊý×é   
    private final static String[] hexDigits = {"0", "1", "2", "3", "4",   
        "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"};   
       
    /** * °ÑinputString¼ÓÃÜ     */  
    public static String generatePassword(String inputString){   
        return encodeByMD5(inputString);   
    }   
       
      /**  
       * ÑéÖ¤ÊäÈëµÄÃÜÂëÊÇ·ñÕýÈ·  
     * @param password    ¼ÓÃܺóµÄÃÜÂë  
     * @param inputString    ÊäÈëµÄ×Ö·û´®  
     * @return    ÑéÖ¤½á¹û£¬TRUE:ÕýÈ· FALSE:´íÎó  
     */  
    public static boolean validatePassword(String password, String inputString){   
        if(password.equals(encodeByMD5(inputString))){   
            return true;   


Ïà¹ØÎĵµ£º

JavaÖ®¸¸÷öÈ»ÀëÖ° ¿ªÔ´½«ºÎÈ¥ºÎ´Ó

Java´´Ê¼ÈËղķ˹·¸ß˹ÁÖ(James Gosling)ÈÕÇ°ÔÚ²©¿ÍÖгÆ,ÒѾ­ÔÚ4ÔÂ2ÈÕ´Ó¼×¹ÇÎÄ(Oracle£©ÍËÐÝ¡£ºÜ¶àÈ˵ĵÚÒ»·´Ó¦ÊÇ£¬ËûÊÇ·ñ»áͶ±¼Î¢Èí¡¢GoogleÖ®ÀàµÄ¹«Ë¾ÄØ£¿²»¹ýGosling±íʾĿǰ»¹Ã»ÓнøÒ»²½´òËã¡£ 
¹ØÓÚÀëÖ°µÄ¾ßÌåÔ­Òò£¬¸ß˹ÁÖûÓÐ͸¶¡£Ö»ÊÇÔÚ²©¿ÍÖÐдµÀ£º“Êǵģ¬ÄÇЩ´«ÑÔ¶¼ÊÇÕæµÄ£ºÎÒÒѾ­ÔÚÒ»ÖÜÇ°£¨4 ......

javaÖеĶ¨Ê±Æ÷Timer

package com.tonglian.test;
import java.util.TimerTask;
//TimerTaskÊǸöÐéÀ࣬ÆäÖÐÓÐÒ»¸örun()
public class Work extends TimerTask{
 @Override
 public void run() {
  // TODO Auto-generated method stub
  System.out.println("tttt/n");
 }
}
//¹¦ÄÜ£ºÃ¿¸ô1Ãë¾Í»áµ ......

javaÖÐAxis2Éú³É¿Í»§¶Ë·½Ê½

Axis2Éú³É¿Í»§¶Ë·½Ê½
»ùÓÚStockQuoteServiceÀà´´½¨¿Í»§¶ËµÄËÄÖÖ·½Ê½
¹¹½¨»ùÓÚAXIOMµÄ¿Í»§¶Ë£»
ʹÓÃAxis2 Databinding Frame work(ADB)Éú³É¿Í»§¶Ë£»
ʹÓÃXMLBeansÉú³É¿Í»§¶Ë£»
ʹÓÃJiBXÉú³É¿Í»§¶Ë¡£
ADB£º×î¼òµ¥µÄÉú³ÉAxis¿Í»§¶ËµÄ·½·¨¡£´ó²¿·ÖÇé¿öÏ£¬ÕâЩÖ÷ÒªµÄÀ඼»áÒÔÄÚ²¿ÀàµÄÐÎʽ´´½¨ÔÚstubÀàÖС£It is not meant ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ