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

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 ÊµÀýʱ£¬×Ô¶¯²úÉúÃÜÔ¿¡£


Ïà¹ØÎĵµ£º

Socket±à³Ì(C#)

//Socket»ù±¾±à³Ì
//·þÎñ¶Ë£º
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
Thread mythread ;
Socket socket;
// ÇåÀíËùÓÐÕýÔÚʹÓõÄ×ÊÔ´¡£
protected override void Dispose( bool disposing )
{
try
¡¡ { ¡¡¡¡
¡¡¡¡ socket.Close();//ÊÍ·Å×ÊÔ´ ......

ÀûÓÃC#µÄ¶¯Ì¬ÀàÐÍÀ´ÊµÏÖÓërailsÀàËÆµÄÔª±à³Ì(1)

ÊìϤruby on railsµÄ¿ª·¢Ô±¶¼ÖªµÀ£¬ÔÚrubyÖУ¬ÓÐÒ»¸öºÜÖØÒªµÄÌØÐÔ£¬¾ÍÊÇÄܹ»ÊµÏÖÔª±à³Ì£¬ÌرðÊÇÔÚÓÃÓÚ¿ª·¢WebÓ¦ÓõÄrails¿ò¼ÜÖУ¬ÓõÄÌØ±ð¶à¡£ÔÚrailsÖУ¬Òª´´½¨Ò»¸ö¶¯Ì¬·½·¨²¢ÓëÊý¾Ý¿â±í×Ö¶ÎÏà¹ØÁª£¬Ö÷ÒªµÄµÄ²½Öè´ó¸ÅÓÐÕâЩ£º
1¡¢Ê×ÏÈÅäÖúÃÊý¾Ý¿âµÄÁ¬½Ó¡£
2¡¢´´½¨Ò»¸öActiveRecordÄ£ÐÍ£¬Õâ¸öÄ£ÐÍÓëÊý¾Ý¿âµÄ±íÃû³ÆÓÐÒ»¶¨ ......

c#º¯ÊýͼÏñ²é¿´Æ÷ ¿ÉÒԲ鿴»ý·Ö¡¢µ¼Êý

http://download.csdn.net/source/1935080
ÕâÓ¦¸ÃËãÊÇÎҵĵÚÒ»¸ö³ÌÐò°É ºÇºÇ
×îÂé·³µÄ¼ÇµÃÊÇ×ø±êÍøµÄ¼ÆË㺯ÊýÁË
ÒÔºóд³ÌÐòÒª¼ÇµÃ¶àÓÃ×¢ÊÍ£¬Ìá¸ß¿É¶ÁÐÔ
Ë㺯Êý»ý·ÖµÄËã·¨ ÊÇÓÃÔÚX=0µÄʱºò Y=0 ÍÆµ¼ÆäËûµÄÖµ
¶ÔÓÐЩº¯ÊýYÎÞ·¨»ý·ÖΪ0 µÄ»°£¬¿ÉÒÔÓûý·Ö¶à³öÀ´µÄÁ½¸ö ÍÏÀ­ÌõÍÏÀ­  £¬Ò²ÐíÄܳöÀ´  -_-||
BUG ¶àÊ ......

ʹÓÃc#¿ª·¢mapserverÖ®ÁùstyleObj

styleObjÓÃÓÚÉèÖÃͼ²ãµÄ·ûºÅ¡£ËüÔÚclassObjÖж¨Ò壬һ°ãÓÚsymbolObjÒ»ÆðʹÓá£Í¨¹ýÉèÖÃstyleObj£¬¿ÉÒÔ²úÉúǧ±äÍò»¯£¬·á¸»¶à²ÊµÄµØÍ¼¡£
Ò»¸ö¼òµ¥µÄstyleObjʾÀý£º
CLASS
NAME "Primary Roads"
STYLE
SYMBOL "circle"
COLOR 178 114 1
SIZE 15
END #style1
STYLE
SYMBOL "circle"
COLOR 254 161 0
SIZE 7
END #s ......

C# ¼ÓÃÜ£­MD5 ºÍ SHA1

ÔÚ ASP.NET ÖпÉÒԷdz£·½±ãµØÖ´ÐÐ MD5
»ò SHA1 ¼ÓÃÜ¡£
<%@ Import Namespace="System.Web.Security" %>
FormsAuthentication.HashPasswordForStoringInConfigFile
Ö»ÐèÒªÁ½²½£¬µÚÒ»²½ÒýÈëÃû³Æ¿Õ¼ä
£¨¸ÃÃû³Æ¿Õ¼äÒ²¿ÉÒÔÊ¡ÂÔÒýÓã©£¬µÚ¶þ²½Ö´ÐмÓÃܺ¯Êý¡£
FormsAuthentication.HashPasswordForStoringI ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ