惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Webroot Blog
Webroot Blog
U
Unit 42
A
About on SuperTechFans
宝玉的分享
宝玉的分享
月光博客
月光博客
C
CERT Recently Published Vulnerability Notes
P
Privacy International News Feed
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
P
Privacy & Cybersecurity Law Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
S
Securelist
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Spread Privacy
Spread Privacy
L
Lohrmann on Cybersecurity
Apple Machine Learning Research
Apple Machine Learning Research
K
Kaspersky official blog
Hugging Face - Blog
Hugging Face - Blog
B
Blog
I
Intezer
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
V
V2EX
L
LangChain Blog
AI
AI
G
GRAHAM CLULEY
T
Tor Project blog
人人都是产品经理
人人都是产品经理
D
Docker
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
I
InfoQ
Y
Y Combinator Blog
C
Comments on: Blog
GbyAI
GbyAI
www.infosecurity-magazine.com
www.infosecurity-magazine.com
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
腾讯CDC
N
News and Events Feed by Topic
MyScale Blog
MyScale Blog
H
Help Net Security
Vercel News
Vercel News
T
Tenable Blog
博客园 - 三生石上(FineUI控件)
爱范儿
爱范儿

博客园 - angelfeather

json中获取key值 iOS开发常用代码块(2) 区别不同浏览器,CSS hack写法 [推荐]13款js编辑器大全 web标准 CSS Sprites 用户控件(.ascx)与网页间(.aspx)如何传值的几种方法 彩色验证码 一段常用的Page_Load事件 (如果有更好的希望大家留言) - angelfeather - 博客园 c#.net常用函数和方法集 ASP.NET中$#=的用法 - angelfeather - 博客园 利用MD5加密数据库中的密码 - angelfeather - 博客园 小记一篇~ - angelfeather - 博客园 推荐一个.net代码查看器Reflector 推荐一个学习asp.net的好地方 简单的ArrayList遍历 Microsoft .Net 框架 SDK 快速入门教程 - angelfeather 遍历页面的所有button控件 GridView统计数据和修改Cell GridView格式化导出Excel GridView导出Excel
asp.net简单的md5算法
angelfeather · 2008-06-18 · via 博客园 - angelfeather

  /// <summary>
    
/// md5加密算法
    
/// </summary>
    
/// <param name="strIN"></param>
    
/// <returns></returns>

    private string MD5Encrypt(string strIN)
    
{
        System.Security.Cryptography.MD5CryptoServiceProvider md5 
= new System.Security.Cryptography.MD5CryptoServiceProvider(); 
        
byte[] bytValue, bytHash;
        bytValue 
= System.Text.Encoding.UTF8.GetBytes(strIN); 
        bytHash 
= md5.ComputeHash(bytValue); 
        md5.Clear(); 
        
string sTemp = ""
        
for (int i = 0; i < bytHash.Length; i++
        

            sTemp 
+= bytHash[i].ToString("x").PadLeft(2'0'); 
        }


        
if (sTemp.Length > 32)
        
{
            sTemp 
= sTemp.Substring(032);
        }


        
return sTemp; 
    }