首页 Soft PlugIn RAN乱 Dev开发 Info资料 English WAP 留言 登陆 注册
-
Posted by Yippee | 评论(0) | 引用(0) | 阅读191次
20080905 c# md5 http

20080905 c# md5 http
http://www.shengfang.org

用C#实现HTTP协议下的多线程文件传输 - D调的华丽 - 博客园
http://www.cnblogs.com/elzero/archive/2007/07/14/817952.html


利用IPC通道进行进程间通信(C#) - lanwilliam的专栏 - CSDNBlog
http://blog.csdn.net/lanwilliam/archive/2008/05/13/2440188.aspx


CodeProject: An FTP client library for .NET 2.0. Free source code and programming help
http://www.codeproject.com/KB/IP/FtpClient.aspx?msg=1589329#xx1589329xx


CodeGuru: .NET Remoting Using a New IPC Channel
http://www.codeguru.com/csharp/csharp/cs_syntax/remoting/article.php/c9251/


Using Remoting IpcChannel in Framework 2.0 - Ohad's Blog
http://weblogs.asp.net/israelio/archive/2005/01/04/346180.aspx


The Moth: IPC with Remoting in .NET 2.0
http://www.danielmoth.com/Blog/2004/09/ipc-with-remoting-in-net-20.html


DotNet Remoting : TCP Eventing [Utkarsh Shah]
http://blogs.msdn.com/dotnetremoting/archive/2006/04/07/571020.aspx


Build a C# Named-Pipes Based Inter-Process,Inter-Machine Object Caching Service
http://www.eggheadcafe.com/articles/20060404.asp


一个用C#编写的自动读写配置文件的开源组件 - 开源空间 - 共享社区共享空间 - Powered by Discuz!NT
http://www.mikecat.net/space/viewspacepost.aspx?postid=119


C#中使用MD5非常简单 - zhangdaoli888的专栏 - CSDNBlog
http://blog.csdn.net/zhangdaoli888/archive/2008/06/03/2508822.aspx
 System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(temp_str, "MD5");

C# MD5加密与解密_Ken.NET
http://hi.baidu.com/%C4%BE%CD%B7%C8%CB/blog/item/5933b3decb6b0358cdbf1a40.html


C#中用MD5实现数据加密 - 软件测试技术第一门户 --TestAge中国软件测试时代
http://www.testage.net/html/63/n-154863.html


C# MD5加密 - 泽来-王者之剑 - 博客园
http://www.cnblogs.com/sunsjorlin/archive/2007/08/22/279531.html


using System;
using System.Security.Cryptography;
using System.Text;

class Example
{
    // Hash an input string and return the hash as
    // a 32 character hexadecimal string.
    static string getMd5Hash(string input)
    {
        // Create a new instance of the MD5CryptoServiceProvider object.
        MD5 md5Hasher = MD5.Create();

        // Convert the input string to a byte array and compute the hash.
        byte[] data = md5Hasher.ComputeHash(Encoding.Default.GetBytes(input));

        // Create a new Stringbuilder to collect the bytes
        // and create a string.
        StringBuilder sBuilder = new StringBuilder();

        // Loop through each byte of the hashed data
        // and format each one as a hexadecimal string.
        for (int i = 0; i < data.Length; i++)
        {
            sBuilder.Append(data[i].ToString("x2"));
        }

        // Return the hexadecimal string.
        return sBuilder.ToString();
    }

    // Verify a hash against a string.
    static bool verifyMd5Hash(string input, string hash)
    {
        // Hash the input.
        string hashOfInput = getMd5Hash(input);

        // Create a StringComparer an comare the hashes.
        StringComparer comparer = StringComparer.OrdinalIgnoreCase;

        if (0 == comparer.Compare(hashOfInput, hash))
        {
            return true;
        }
        else
        {
            return false;
        }
    }


字体:


Permanant URI永久地址 http://www.shengfang.org/blog/p/20090503cmd5sharp.php
Trackback URI引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1241337778

2009年5月3日16:02星期日  [Info资料] 追踪此文的RSS
提示:
此文还没有评论。

称呼:    登陆   注册
   不注册,但记住我的信息
邮件:
(非必须)
评论: [UBB代码帮助]
粗体 斜体 下划线 链接 水平线 引用



验证码: 请输入你看见的数字
关闭UBB      提交时自动将内容复制到剪贴板

公告
Fire and Motion!

统计信息
[Yippee]||[统计]||日志:1967
在线: 23||用户: 2593 [列表]
今日:1292||到访:3118463
Rss:||评论:1631

最新日志

最新评论

友情链接

日历
2008 - 11
      1
2345678
9101112131415
16171819202122
23242526272829
30      

最新引用

搜索

归档

杂项
Get RSS Feed (Version 2.0)
Get Atom Feed (Version 0.3)
编码:  UTF-8