C# ¼ÓÃÜ£RSA
RSA
Êô²»¶Ô³Æ¼ÓÃÜ£¬Ê¹ÓÃÒ»¸ö¹«Ô¿Ò»¸ö˽Կ£¬¹«Ô¿¿ÉÒÔ¹«¿ªÓÃÒÔ¼ÓÃÜ£¬Ë½Ô¿Ñϸñ±£ÃÜÓÃÓÚ½âÃÜ£¬RSA ÊʺÏÓÚÊý¾ÝÁ¿²»´óµÄ¼ÓÃÜ£¬±ÈÈç¼ÓÃܶԳƼÓÃܵÄÃÜÔ¿¡£
RSACryptoServiceProvider
µÄÃû³Æ¿Õ¼äÊÇ£º
System.Security.Cryptography
RSACryptoServiceProvider rsaSend = new RSACryptoServiceProvider();
string plaintext = "Ã÷ÎÄ"; //Ã÷ÎÄ
byte[] ciphertext = rsaSend.Encrypt(System.Text.Encoding.UTF8.GetBytes(plaintext), false); //¼ÓÃܺó
lbl.Text = Convert.ToBase64String(ciphertext); //ÏÔʾ¼ÓÃܺóµÄ£¬ÎªÁËÏÔʾ²»¿É¼û×Ö·û£¬Ê¹ÓõÄÊÇ Base64 ±àÂë¡£
ʹÓà RSACryptoServiceProvider() ´´½¨ RSACryptoServiceProvider ʵÀýʱ£¬×Ô¶¯²úÉúÃÜÔ¿¡£
Ïà¹ØÎĵµ£º
C#ÕýÔò±í´ïʽƥÅä×Ö·û´®µÄ·½·¨ÈçÏ£º
1.ʹÓÃC#ÖÐʹÓÃÕýÔò±í´ïʽSystem.Text.RegularExpressionsÃüÃû¿Õ¼ä£»
2.ʹÓÃC#ÖÐʹÓÃÕýÔò±í´ïʽMatches()·½·¨Æ¥Åä×Ö·û´®£¬¸ñʽÈçÏ£º
MatchCollection Matches = Regex.Matches(Str, Pattern, RegexOptions.IgnoreCase | RegexOptions.ExplicitC ......
c#ÖлùÀࣨ¸¸ÀࣩÖеÄij·½·¨ÈôÏëÔÚÅÉÉúÀࣨ×ÓÀࣩÖб»ÖØÐ´£¨override£©£¬±ØÐ뽫»ùÀàÖеķ½·¨¶¨ÒåΪvirtual£¬¼´Ð麯Êý¡£
ÈôÅÉÉúÀཫ·½·¨ÐÞÊÎΪnew£¬¼´ÓÐÒâÒþ²Ø»ùÀàÖеķ½·¨¡£
ÏÂÃæ¿´Ò»×é´úÂ룺
public class Father
{
public void hand()
{
Console.WriteLine("Father.hand");
}
}
......
Eval("")ºÍBind("")¡¡ÕâÁ½ÖÖÒ»¸öµ¥Ïò°ó¶¨£¬Ò»¸öË«Ïò°ó¶¨£¬bindÊÇË«Ïò°ó¶¨,µ«ÐèÊý¾ÝÔ´Ö§³Ö
ASP.NET 2.0¸ÄÉÆÁËÄ£°åÖеÄÊý¾Ý°ó¶¨²Ù×÷£¬°Ñv1.xÖеÄÊý¾Ý°ó¶¨Óï·¨DataBinder.Eval(Container.DataItem, fieldname)¼ò»¯ÎªEval(fieldname)¡£Eval·½·¨ÓëDataBinder.EvalÒ»Ñù¿ÉÒÔ½ÓÊÜÒ»¸ö¿ÉÑ¡µÄ¸ñʽ»¯×Ö·û´®²Î ......
»ùÀàµÄÖØÐ´£º
new:£¨½öÕë¶ÔÅÉÉúÀàÓÃÅÉÉúʵÀýµ÷ÓÃʱ²ÅÆð×÷Óã¬Ä¿µÄÊÇÔÚÅÉÉúÀàÖÐÓÃÀ´¸²¸Ç»ùÀàµÄ·½·¨£©
1.ÅÉÉúÀ๹½¨³ÉµÄʵÀý£¬µ±µ÷ÓÃÓÉnew ÐÞÊεķ½·¨Ê±£¬¸²¸Ç»ùÀànew ·½·¨¡£
2.ÅÉÉúÀ๹½¨³ÉµÄʵÀý¸³¸ø»ùÀà±äÁ¿Ê±£¬ÔÙµ÷ÓÃÓÉnew ÐÞÊεķ½·¨Ê±£¬½«Ö´ÐлùÀàÖеķ½·¨¡£
virtual¡¢override
1.ÓÉÅÉÉúÀ๹½¨µÄʵÀý£¬²»¹ÜÊÇÓÃÅÉÉ ......
http://download.csdn.net/source/1935080
ÕâÓ¦¸ÃËãÊÇÎҵĵÚÒ»¸ö³ÌÐò°É ºÇºÇ
×îÂé·³µÄ¼ÇµÃÊÇ×ø±êÍøµÄ¼ÆË㺯ÊýÁË
ÒÔºóд³ÌÐòÒª¼ÇµÃ¶àÓÃ×¢ÊÍ£¬Ìá¸ß¿É¶ÁÐÔ
Ë㺯Êý»ý·ÖµÄËã·¨ ÊÇÓÃÔÚX=0µÄʱºò Y=0 ÍÆµ¼ÆäËûµÄÖµ
¶ÔÓÐЩº¯ÊýYÎÞ·¨»ý·ÖΪ0 µÄ»°£¬¿ÉÒÔÓûý·Ö¶à³öÀ´µÄÁ½¸ö ÍÏÀÌõÍÏÀ £¬Ò²ÐíÄܳöÀ´ -_-||
BUG ¶àÊ ......