2009年6月17日 星期三

加密-Part_1-MD5

MD5=>Message-Digest Algorithm 5

用於確保資訊傳輸完整一致。是電腦廣泛使用的雜湊演算法之一(又譯摘要演算法、哈希演算法),主流程式語言普遍已有MD5實作。


小心:

1.此加密方法具備只加密,沒有解密不可逆性

   2.這個演算法由以前的MD2,MD3,MD4演算至今,年代久遠,缺點不斷被發現,加密方式也 不斷被公開及解析,所以已經不再適用於需要高安全性的場合

以上說明來自WIKI

------------------------------------------------------------------

在 .NET Framework 中有個 namespace 是專門處理加解密動作的類別
System.Security.Cryptography

今天我們先拿MD5來實作看看

在程式部份








記得 using System.Security.Cryptography 這個類別

這裡是示範把Textbox的文字加密後輸出

結果在下圖



2 則留言:

匿名 提到...

You need to wait around no less than forty hrs following your former exercise just before starting up your subsequent work out.


Feel free to visit my web site - bowflex selecttech dumbbells

匿名 提到...

He also was trying to find and a property fitness
center but was discouraged together with the substantial price tag of the types offered then.


Here is my web site: please click the following page