Âþ̸Java¼ÓÃܼ¼Êõ£¨Ò»£©
¼ÓÃܽâÃÜ£¬Ôø¾ÊÇÎÒÒ»¸ö±ÏÒµÉè¼ÆµÄÖØÒª×é¼þ¡£ÔÚ¹¤×÷Á˶àÄêÒÔºó»ØÏ뵱ʱÄǸö¼ÓÃÜ¡¢½âÃÜËã·¨£¬ÊµÔÚÊÇÌ«µ¥´¿ÁË¡£
ÑÔ¹éÕý´«£¬ÕâÀïÎÒÃÇÖ÷ÒªÃèÊöJavaÒѾʵÏÖµÄһЩ¼ÓÃܽâÃÜËã·¨£¬×îºó½éÉÜÊý×ÖÖ¤Êé¡£
Èç»ù±¾µÄµ¥Ïò¼ÓÃÜËã·¨£º
¡ñ BASE64 ÑϸñµØ˵£¬ÊôÓÚ±àÂë¸ñʽ£¬¶ø·Ç¼ÓÃÜËã·¨
¡ñ MD5(Message Digest algorithm 5£¬ÐÅÏ¢ÕªÒªËã·¨)
¡ñ SHA(Secure Hash Algorithm£¬°²È«É¢ÁÐËã·¨)
¡ñ HMAC(Hash Message Authentication Code£¬É¢ÁÐÏûÏ¢¼ø±ðÂë)
¸´ÔӵĶԳƼÓÃÜ£¨DES¡¢PBE£©¡¢·Ç¶Ô³Æ¼ÓÃÜËã·¨£º
¡ñ DES(Data Encryption Standard£¬Êý¾Ý¼ÓÃÜËã·¨)
¡ñ PBE(Password-based encryption£¬»ùÓÚÃÜÂëÑéÖ¤)
¡ñ RSA(Ëã·¨µÄÃû×ÖÒÔ·¢Ã÷ÕßµÄÃû×ÖÃüÃû£ºRon Rivest, AdiShamir ºÍLeonard Adleman)
¡ñ DH(Diffie-HellmanËã·¨£¬ÃÜÔ¿Ò»ÖÂÐÒé)
¡ñ DSA(Digital Signature Algorithm£¬Êý×ÖÇ©Ãû)
¡ñ ECC(Elliptic Curves Cryptography£¬ÍÖÔ²ÇúÏßÃÜÂë±àÂëѧ)
±¾ÆªÄÚÈݼòÒª½éÉÜBASE64¡¢MD5¡¢SHA¡¢HMAC¼¸ÖÖ·½·¨¡£
MD5¡¢SHA¡¢HMACÕâÈýÖÖ¼ÓÃÜËã·¨£¬¿ÉνÊÇ·Ç¿ÉÄæ¼ÓÃÜ£¬¾ÍÊDz»¿É½âÃܵļÓÃÜ·½·¨¡£ÎÒÃÇͨ³£Ö»°ÑËûÃÇ×÷Ϊ¼ÓÃܵĻù´¡¡£µ¥´¿µÄÒÔÉÏÈýÖֵļÓÃܲ¢²»¿É¿¿¡£
BASE64
°´ÕÕRFC2045µÄ¶¨Ò壬Base64±»¶¨ÒåΪ£ºBase64ÄÚÈÝ´«ËͱàÂë±»Éè¼ÆÓÃÀ´°ÑÈÎÒâÐòÁеÄ8λ×Ö½ÚÃèÊöΪһÖÖ²»Ò×±»ÈËÖ±½Óʶ±ðµÄÐÎʽ¡££¨The Base64 Content-Transfer-Encoding is designed to represent arbitrary sequences of octets in a form that need not be humanly readable.£©
³£¼ûÓÚÓʼþ¡¢http¼ÓÃÜ£¬½ØÈ¡httpÐÅÏ¢£¬Äã¾Í»á·¢ÏֵǼ²Ù×÷µÄÓû§Ãû¡¢ÃÜÂë×Ö¶Îͨ¹ýBASE64¼ÓÃܵġ£
ͨ¹ýjava´úÂëʵÏÖÈçÏ£º
/** *//**
* BASE64½âÃÜ http://www.bt285.cn http://www.5a520.cn
*
* @param key
* @return
* @throws&nb
Ïà¹ØÎĵµ£º
2010-05-03
Linux AS 4
JDK
Sun JDK
http://java.sun.com/javase/downloads/index.jsp
Download Java SE Development Kit 6u20 for Linux, Multi-language
Java SE Development Kit 6u20
jdk-6u20-linux-i586-rpm.bin
Java SE Development Kit 6u20
jdk-6u20-linux-i586.bin
Notes:ÏÖÔÚµÄJDK ......
1.À¬»ø»ØÊյıØÒªÐÔ
µ±¶ÔÏó±»´´½¨Ê±£¬»áÔÚJavaÐéÄâ»úÖзÖÅäÒ»¿éÄڴ棨ÄÚ´æ·ÖÅä-¡·Ä¬ÈÏÖµ-¡·³õʼ»¯Öµ£©£¬ÔÚJVMµÄÉúÃüÖÜÆÚÖУ¬Java³ÌÐòÔÚ²»¶ÏµØ´´½¨¶ÔÏó£¬Èç¹ûÕâЩ¶ÔÏóµÄÄÚ´æ²»±»¼°Ê±»ØÊÕ£¬»áµ¼ÖÂÄÚ´æ¿Õ¼ä²»×㣬Òò´ËÒªÓÐÒ»ÖÖ´ëÊ©¼°Ê±»ØÊÕÎÞÓöÔÏóµÄÄڴ棬±£Ö¤ÄÚ´æÄܹ»±»Öظ´ÀûÓá£
& ......
·â×°£º
1.˵°×Á˾ÍÊDZ£»¤ÎÒÃǶÔÏóÖеÄÒþ˽ʹÆä¶Ô Íⲿ²»¿É¼û¡£
2.Ò»°ãÇé¿öÏ£¬ÀàÖеÄÊôÐÔÉèΪprivate¡£
3.ͨ¹ýgetterºÍsetter·½·¨È¥¸³ÖµºÍÈ¡Öµ¡£
&nbs ......
1.1 °²×°JDK
1.1.1 ÏÂÔØJDK
´ò¿ªhttp://java.sun.com/ÍøÕ¾£¬ÔÚĿ¼ÀïÃæÑ¡ÔñDownload£¬ÔÚÏÂÀ²Ëµ¥ÖÐÑ¡ÔñJava SE
½øÈëÏÂÒ»¸öÒ³Ã棬ҪѡÔñÏÂÔØJDK£¬¶ø²»ÒªÏÂÔØJRE£º
½ÓÏÂÀ´ÊÇÑ¡ÔñÔËÐеÄƽ̨£¬ÕâÀﵱȻÊÇÑ¡ÔñlinuxÁË£º
Ñ¡ÔñºÃƽ̨ºó£¬µã»÷continue:
ÕâÀï¿ÉÒÔÖ±½Óµ ......