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

ÔÚASP.NetÖÐʵÏÖRSA¼ÓÃÜ


ÔÚASP.NetÖÐʵÏÖRSA¼ÓÃÜ
ÔÚÎÒÃÇʵ¼ÊÔËÓÃÖУ¬¼ÓÃÜÊDZ£Ö¤Êý¾Ý°²È«µÄÖØÒªÊֶΡ£ÒÔǰʹÓÃASPʱ£¬¶ÔÊý¾Ý¼ÓÃÜ¿ÉÒÔʹÓÃMD5ºÍSHA1Ëã·¨£¬ÕâÁ½ÖÖËã·¨ËäÈ»¿ì½ÝÓÐЧ£¬µ«ÊÇÎÞ·¨¶Ôͨ¹ýËüÃǼÓÃܵÄÃÜÎĽøÐз´ÔËË㣬¼´ÊǽâÃÜ¡£Òò´ËÐèÒª½âÃÜÊý¾ÝµÄ³¡ºÏ£¬ÕâÁ½ÖÖ·½·¨¾Í²»Ì«ÊʺÏÁË¡£µ±È»ÄãÒ²¿ÉÒÔ×Ô¼º±àдÊÊÓõļÓÃܺͽâÃܳÌÐò£¬²»¹ýÕâ¶Ô±àдÕßµÄÊýѧˮƽÓкܸߵÄÒªÇó£¬Ò»°ãÈËÊǺÜÄÑ×öµ½µÄ¡£
ÏÖÔÚ£¬Ëæ×ÅASP.NetµÄÍƳö£¬³¹µ×¸Ä±äÁËÒÔÇ°ASPϵıà³Ìģʽ¡£ÎÒÃÇÄܹ»ÀûÓÃ.Net FrameworkÖеÄÀàÌṩµÄ¼ÓÃÜ·þÎñÀ´±£Ö¤Êý¾Ý°²È«¡£Ä¿Ç°Ó¦ÓýÏΪ¹ã·ºµÄ¼ÓÃÜ·½·¨ÊÇʹÓÃRSAËã·¨½øÐмÓÃÜ¡£ÔÚ.Net FrameworkÖÐÓëRSA¼ÓÃÜËã·¨Ïà¹ØµÄÀàÖ÷ÒªÓÐÁ½¸ö£ºRSA ÀàºÍRSACryptoServiceProvider Àà¡£°´ÕÕMSDNµÄ˵·¨RSA ÀàÊÇ“±íʾ RSA Ëã·¨µÄËùÓÐʵÏÖ¾ù´ÓÖм̳еĻùÀà”£¬¶øRSACryptoServiceProvider ÀàÊǓʹÓüÓÃÜ·þÎñÌṩ³ÌÐò (CSP) ÌṩµÄ RSA Ëã·¨µÄʵÏÖÖ´Ðв»¶Ô³Æ¼ÓÃܺͽâÃÜ”¡£ÁíÍ⣬“±íʾ RSA Ëã·¨µÄ±ê×¼²ÎÊý”µÄRSAParameters ½á¹¹Ò²ÊǺÜÖØÒªµÄ£¬Ëü±£´æÁËRSAËã·¨µÄ²ÎÊý¡£
ÓÉÓÚ½éÉÜRSAËã·¨Ô­ÀíµÄÎÄÕ»òÊé¼®±È½Ï¶à£¬´ó¼Ò¿ÉÒÔ²ÎÔÄһϣ¬Ôڴ˾Ͳ»¸´ÊöÁË¡£ÏÂÃæ×ÅÖؽéÉÜÒ»ÏÂÈçºÎÔÚASP.NetÖÐʵÏÖRSA¼ÓÃÜ¡£
RSA²ÎÊýµÄ²úÉú£ºRSA²ÎÊýµÄÀàÐ;ÍÊÇÉÏÃæÌáµ½µÄRSAParameters ½á¹¹£¬²éÔÄMSDN¿ÉÖªÆä°üº¬ÁËD¡¢DP¡¢DQ¡¢Exponent¡¢InverseQ¡¢Modulus¡¢P¡¢Q°Ë¸ö×ֶΡ£¼ÓÃÜʱ½öÐèÒªExponentºÍModulusÁ½¸öÖµ£¬¿É¿´³É¹«Ô¿¡£½âÃÜʱËùÓÐ×ֶζ¼ÐèÒª£¬¿É¿´³É˽Կ¡£ÏÂÃæÕâ¶Î³ÌÐòÏÔʾÁËÈçºÎ²úÉúRSAÁ½¸ö²ÎÊý£º
RSACryptoServiceProvider rsa = new RSACryptoServiceProvider();
RSAParameters rsaParamsExcludePrivate=rsa.ExportParameters(false);
RSAParameters rsaParamsIncludePrivate=rsa.ExportParameters(true);
RSACryptoServiceProviderÀàµÄExportParameters(bool)·½·¨ÓÃÓÚµ¼³öRSA²ÎÊý£¬true±íʾµ¼³öÉÏÊö°Ë¸ö×ֶεē˽Կ”£¬false±íʾµ¼³ö“¹«Ô¿”¡£
ʹÓÃRSA²ÎÊý½øÐмÓÃܽâÃÜ£ºÕâÒ»²½ÐèÒª°ÑÉÏÃæÁ½¸ö²ÎÊýµ¼Èëµ½RSACryptoServiceProviderÀà¶ÔÏóÖУ¬ÔÙÓÃËü¶ÔÊý¾Ý½øÐмÓÃÜ¡£ÈçÏÂÃæµÄ´úÂëËùʾ£¬ÎÒÃÇ¿ÉÒÔдһ¸öº¯ÊýÀ´Íê³É¼ÓÃܹý³Ì£º
Public byte [ ] RSAEncrypt ( byte [ ] b)
{
RSACryptoServiceProvider rsa = new RSACryptoServiceProvider();
rsa.ImportParameters(rsaParamsExcludePrivate); //µ¼È빫Կ
byte [] EncryptedData=rsa.Encrypt(Data


Ïà¹ØÎĵµ£º

ASP.NET µÝ¹é °ó¶¨TreeView

 Ê×ÏÈ¿´Êý¾Ý¿â±í½á¹¹£º
´úÂëÈçÏ£º
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.Htm ......

asp.net(vs2005)ʹÓÃupdatepanel¿Ø¼þÏê½â

  ×î½ü×öÒ»¸öÍøÕ¾£¬ÀïÃæÉæ¼°µ½¼¶ÁªµÄÎÊÌ⣨ÈçÊ¡-ÊУ¬Æ·ÅÆ-ÐͺŵÈ), ÎÒÓõÄÊÇDropDownListÀ´ÊµÏֵģ¬ÉèÖø¸¼¶µÄAutoPostBackÊôÐÔΪÕæ.È»ºóÔÚËüµÄSelectedIndexChanged()ʼþÀïдÏàÓ¦µÄ´úÂ룬ÕâÑù¾ÍÄÜʵÏÖ¼¶Áª¹Øϵ£¨µ±È»ÕâÀïҪעÒâIsPostBackµÄÎÊÌ⣩.  ×öºÃÖ®ºóÓÃʱ·¢ÏÖÒ»¸ö·Ç³£²»Ë¬µÄÎÊÌ⣬ÄǾÍÊÇÿ´Î¶¼»áˢУ¬Õ ......

ASP.NET+MYSQL

 MysqlµÄconnector/net5.0ÏÂÔصØÖ·:
http://dev.mysql.com/get/Downloads/Connector-Net/mysql-connector-net-5.0.6.zip/from/pick
°²×°ºÃÒÔºó,
µãÊôÐÔ,È»ºóµã²éÕÒÄ¿±ê,µãÏòÉÏÒ»²ãĿ¼,ÕÒµ½Binaries\.NET 2.0,È»ºó½«Õâ¸öÎļþ¸´ÖƵ½ÄãµÄ¹¤³ÌĿ¼ÏÂ,Ò»°ãÕâÑùµÄDLLÎļþ»á±£´æµ½binĿ¼ÏÂ.
ÔÚ´úÂëÒ³ÀïÊäÈëusing Mysql. ......

ASP.NET IIS ×¢²á¹¤¾ß (Aspnet_regiis.exe)

ASP.NET IIS ×¢²á¹¤¾ß (Aspnet_regiis.exe)
ÔÚһ̨¼ÆËã»úÉϲ¢ÐÐÖ´Ðжà¸ö .NET Framework °æ±¾Ê±£¬Ó³Éäµ½ ASP.NET Ó¦ÓóÌÐòµÄ ASP.NET ISAPI °æ±¾¾ö¶¨Á˸ÃÓ¦ÓóÌÐòËùʹÓõĹ«¹²ÓïÑÔÔËÐпâ (CLR) °æ±¾¡£Ê¹Óà ASP.NET IIS ×¢²á¹¤¾ß (Aspnet_regiis.exe)£¬¹ÜÀíÔ±»ò°²×°³ÌÐò¿ÉÒÔ·½±ãµØ¸üРASP.NET Ó¦ÓóÌÐòµÄ½Å±¾Ó³É䣬ʹÆäÖ¸Ï ......

ASP.NETÖеÄCode Behind¼¼Êõ

Ò»£®Code Behind¼ò½é
¡¡¡¡Code Behind¾ÍÊÇËùνµÄ´úÂë·ÖÀ룬×Ô´ÓMicrosoft¹«Ë¾ÍƳöÁËASP.NETÒÔºó£¬Code
Behind¾ÍÊÇÒ»¸öÈÈÃŵĻ°Ìâ¡£ÔÚÒ»°ãµÄASP.NETÎļþÖУ¬Code
BehindÖ÷ÒªÊÇÓöþ¸öÎļþÀ´´´½¨Ò»¸öASP.NETµÄÒ³Ã棬ÆäÖÐÒ»¸öÊÇÉè¼ÆÎļþ£¬Ò»°ãÒÔ.aspx»òÕß.ascx×öΪÀ©Õ¹Ãû£¬¶øÁíÍâÒ»¸öÊdzÌÐò´úÂëÎÄ
¼þ£¬Ò»°ãÒÔ.vb»òÕß.cs×öΪ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ