Âþ̸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
Ïà¹ØÎĵµ£º
JAVAÖÐ int ÀàÐÍҪת»¯³É String ÀàÐÍ£¬¿ÉÒÔÓÐÈýÖÖ·½Ê½£¬·Ö±ðÊÇ£º
(1) String.valueOf(i)
(2) Integer.toString(i)
(3) i+""
ÆäÖУºµÚ¶þÖÖÊÇЧÂÊ×î¸ßµÄ£¬ºÄʱÊÇÆäËûÁ½ÖÖµÄÒ»°ë¡£
String.valueOf(i)£º891
Integer.toString(i)£º468
i+""£º844
......
1.ΪʲôҪʹÓÃÏ̳߳Ø
ÔÚjavaÖУ¬Èç¹ûÿ¸öÇëÇóµ½´ï¾Í´´½¨Ò»¸öÐÂỊ̈߳¬¿ªÏúÊÇÏ൱´óµÄ¡£ÔÚʵ¼ÊʹÓÃÖУ¬·þÎñÆ÷ÔÚ´´½¨ºÍÏú»ÙÏß³ÌÉÏ»¨·ÑµÄʱ¼äºÍÏûºÄµÄϵͳ×ÊÔ´¶¼Ï൱´ó£¬ÉõÖÁ¿ÉÄÜÒª±ÈÔÚ´¦Àíʵ¼ÊµÄÓû§ÇëÇóµÄʱ¼äºÍ×ÊÔ´Òª¶àµÄ¶à¡£³ýÁË´´½¨ºÍÏú»ÙÏ̵߳ĿªÏúÖ®Í⣬»î¶¯µÄÏß³ÌÒ²ÐèÒªÏûºÄϵͳ×ÊÔ´¡ ......
Ç°Ò»¶Îʱ¼äΪ´ó¼ÒÍƼöÁË»ù±¾Javaѧϰ¼Æ½Ï¾µäµÄÖÐÎÄͼÊ飬½ñÌìÔÙΪ´ó¼Ò½éÉܼ¸±¾£¬ÓÐÐËȤµÄÅóÓѲ»·ÁÒ»¿´¡£ JBuilder ¿ª·¢ÈËÔ±Ö¸ÄÏÔÊéÃû: Borland Jbuilder for Windows 95,Windows 98,&Wnidows NT Developer¡®s Guide £¬JBuilderÊÇBorland¹«Ë¾ËùÍƳöµÄJavaÓïÑÔ±à³Ì¹¤¾ß£¬Ëü¾ßÓÐÒ»¸ö¹¦ÄÜÇ¿´óµÄ¼¯³É¿ª·¢»·¾³£¬¿ÉÒÔ¿ìËÙ´´½¨¸÷Ö ......
¶¹¶¹Íø ¼¼ÊõÓ¦ÓÃƵµÀ 2009Äê06ÔÂ10ÈÕ ¡¾×ֺţºÐ¡ÖÐ´ó¡¿ Êղر¾ÎÄ
JProfiler memcached JavaCC EclEmma Jester Java¼ÓÃܼ¼Êõ£¨Æߣ©¡£
¡¡¡¡ECC
¡¡¡¡ECC-Elliptic Curves Cryptography£¬ÍÖÔ²ÇúÏßÃÜÂë±àÂëѧ£¬ÊÇÄ¿Ç°ÒÑÖªµÄ¹«Ô¿ÌåÖÆÖУ¬¶Ôÿ±ÈÌØËùÌṩ¼ÓÃÜÇ¿¶È×î¸ßµÄÒ»ÖÖÌåÖÆ¡£ÔÚÈí¼þ×¢²á ......