给大家一个新的加密方法,C#的
c#吧
全部回复
仅看楼主
level 1
xychcder 楼主
详情查看中华学习网 http://www.chinahop.cn/Article/ShowArticle.asp?ArticleID=2186using System;/* The reason that i am using interface is that, in several * weeks i will use a bitwise operator for have encryption and decryption* */public interface IBindesh{string encode(string str);string decode(string str);}namespace EncryptionDecryption{///
/// Summary description for EncryptionDecryption./// public class EncryptionDecryption : IBindesh{public string encode(string str){string htext = ""; // blank textfor ( int i = 0; i < str.Length; i++){htext = htext + (char) (str[i] + 10 - 1 * 2);}return htext;}public string decode(string str){string dtext = ""; for ( int i=0; i < str.Length; i++){dtext = dtext + (char) (str[i] - 10 + 1*2);}return dtext;}}} 
2007年02月13日 06点02分 1
level 1
xiexie
2007年02月17日 06点02分 2
1