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

C# asp.netÈçºÎʹÓÃMD5¼ÓÃÜ£¬½âÃÜ

using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;namespace md5
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(UserMd5("8"));
Console.WriteLine(GetMd5Str("8"));
}
/**//// <summary>
/// MD5 16λ¼ÓÃÜ
/// </summary>
/// <param name="ConvertString"></param>
/// <returns></returns>
public static string GetMd5Str(string ConvertString)
{
MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
string t2 = BitConverter.ToString(md5.ComputeHash(UTF8Encoding.Default.GetBytes(ConvertString)), 4, 8);
t2 = t2.Replace("-", "");
return t2;
}/**//// <summary>
/// MD5¡¡32λ¼ÓÃÜ
/// </summary>
/// <param name="str"></param>
/// <returns></returns>
static string UserMd5(string str)
{
string cl = str;
string pwd = "";
MD5 md5 = MD5.Create();//ʵÀý»¯Ò»¸ömd5¶ÔÏñ
// ¼ÓÃܺóÊÇÒ»¸ö×Ö½ÚÀàÐ͵ÄÊý×飬ÕâÀïҪעÒâ±àÂëUTF8/UnicodeµÈµÄÑ¡Ôñ¡¡
byte[] s = md5.ComputeHash(Encoding.UTF8.GetBytes(cl));
// ͨ¹ýʹÓÃÑ­»·£¬½«×Ö½ÚÀàÐ͵ÄÊý×éת»»Îª×Ö·û´®£¬´Ë×Ö·û´®Êdz£¹æ×Ö·û¸ñʽ»¯ËùµÃ
for (int i = 0; i < s.Length; i++)
{
// ½«µÃµ½µÄ×Ö·û´®Ê¹ÓÃÊ®Áù½øÖÆÀàÐ͸ñʽ¡£¸ñʽºóµÄ×Ö·ûÊÇСдµÄ×Öĸ£¬Èç¹ûʹÓôóд£¨X£©Ôò¸ñʽºóµÄ×Ö·ûÊÇ´óд×Ö·û pwd = pwd + s[i].ToString("X");}
return pwd;
}
}
}


Ïà¹ØÎĵµ£º

C#ÓëFlash½»»¥

C#ÓëFlash½»»¥ £¨×ª×ÔСÀÚÔÚÏߣ©
C#ÓëFlash½»»¥
Ç°¶ÎÈÕ×Ó¹«Ë¾ÒªÇó×öÒ»¸öC#ÓëFlash½»»¥µÄ¶«Î÷£¬ÓÃÀ´C#Óë¶ÌÐÅèͨѶ½«Êý¾Ý´«µ½FlashÉÏÏÔʾÓë²Ù×÷µÄÓ¦Óá£
µÚÒ»²½C#Ìí¼Ó×é¼þ
´ò¿ªVS2005-¹¤¾ß-Ñ¡Ôñ¹¤¾ßÏäÏî-COM×é¼þ-Ñ¡ÔñShockwave Flash Object-È·¶¨
Ìí¼ÓºÃ×é¼þÍù³¡¾°ÉÏÍÏ·Å£¬Èç¹ûÌáʾע²áÐèÇó×¢²á
c# ×¢²á¿Ø¼þ-ÔÚÔËÐÐÊä ......

ASP.NETÒ³ÃæÓëIISµ×²ã½»»¥ºÍ¹¤×÷Ô­ÀíÏê½â

ASP.NETÒ³ÃæÓëIISµ×²ã½»»¥ºÍ¹¤×÷Ô­ÀíÏê½â 
µÚÒ»»Ø£º
ÒýÑÔ
ÎÒ²éÔĹý²»ÉÙAsp.NetµÄÊé¼®£¬·¢ÏÖ´ó¶àÊý×÷Õ߶¼ÊÇÕ¾ÔÚÒ»¸ö±È½Ï¸ßµÄ²ã´ÎÉϽ²½âAsp.Net¡£ËûÃÇÄÍÐÄ¡¢Ï¸ÖµظæËßÄãÈçºÎÒ»²½²½ÍϷſؼþ¡¢ÉèÖÿؼþÊôÐÔ¡¢±àдCodeBehind´úÂ룬ÒÔʵÏÖij¸öÌض¨µÄ¹¦ÄÜ¡£
ÕâÖÖ×ö·¨£¬Êµ¼ÊÉÏÊǻشðÁË“ÈçºÎÈ¥×ö”µÄÎÊÌ⣬ȴà ......

ÓÃjavaÍê³ÉC#ͬÑùµÄDES¶Ô³Æ¼ÓÃÜ

ÔÚÒ»¸öÏîÄ¿ÖУ¬¿Í»§ÓÃC#ʵÏÖÁËDES¼ÓÃÜ£¬ÓÉÓÚÐèÒªºÍjava·½ÃæµÄ³ÌÐò½øÐÐÊý¾Ý½»»¥£¬ËùÒÔ±ØÐëÅäºÏ½øÐмӽâÃܹ¤×÷¡£¿Í»§ÌṩÁËÃÜÔ¿ºÍÏòÁ¿£¬ÎÒ¿´ÁË¿´´úÂ룬c#×öÕâ¸öÊÂÇ黹Âù¼òµ¥¡£ ÓÃjavaʵÏֹؼüÊÇÎÒ²»×Ö¶ÎÔõôÉèÖÃÏòÁ¿£¬Ò»°ãÓÃCipher¶ÔÏó¶¼ÊÇĬÈÏËæ»úÏòÁ¿¡£¸ãÁËÒ»Õ󣬷¢ÏÖÊÇÓÃIvParameterSpecÕâ¸öÀàÀ´ÉèÖá£ÓÚÊÇÓÐÁËÒÔÏ´ú ......

IIS7·¢²¼asp.netÕ¾µã

HTTP Error 500.19 - Internal Server Error
Ò» Ê×ÏȽâËø
ÅäÖôíÎó: ²»ÄÜÔÚ´Ë·¾¶ÖÐʹÓôËÅäÖýڡ£Èç¹ûÔÚ¸¸¼¶±ðÉÏËø¶¨Á˸ýڣ¬±ã»á³öÏÖÕâÖÖÇé¿ö¡£Ëø¶¨ÊÇĬÈÏÉèÖõÄ(overrideModeDefault="Deny")£¬»òÕßÊÇͨ¹ý°üº¬ overrideMode="Deny" »ò¾ÉÓÐµÄ allowOverride="false" µÄλÖñê¼ÇÃ÷È·ÉèÖõġ£
³öÏÖÕâ¸ö´íÎóÊÇÒòΪ IIS 7.5 ......

asp.net ¶ÁÈ¡Éí·ÝÖ¤Ô´Âë

Ò»°ãÀ´ËµwinformÓ¦ÓóÌÐò½â¾öÕâ¸öÎÊÌâÆðÀ´Ê±ºÜÈÝÒ׵ģ¬webÓ¦ÓóÌÐò¾ÍÂé·³Ò»µãÁË¡£ ÕâÀïÎÒ˵˵ÎҵĽâ¾ö˼·£º Ò»¡¢Äã±ØÒªÓÐÁª»úÐ;ÓÃñÉí·ÝÖ¤ÔĶÁÆ÷Ò»¸ö£¨´øÇý¶¯¹âÅÌ£©£¬ÕâÀïÎÒÓõÄÊǾ«Â×µç×Ó¹«Ë¾µÄiDR200,²¢ÓÐÕâ¸öÔĶÁÆ÷µÄ¿ª·¢½Ó¿Ú˵Ã÷¡£ ¶þ¡¢Ð½¨Ò»¸öwinform¿Ø¼þÏîÄ¿ReadCardControl£¬Ìí¼ÓÒ»¸öÖ÷ÀàReadCard 1¡¢ ÉùÃ÷dllÈë¿Ú ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ