C#加密方法
来源:互联网 发布:淘宝客怎么玩才能赚钱 编辑:程序博客网 时间:2024/06/05 07:54
C#加密方法
using 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>
/// Summary description for EncryptionDecryption.
/// </summary>
public class EncryptionDecryption : IBindesh
{
public string encode(string str)
{
string htext = ""; // blank text
for ( 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;
}
}
}
- C#加密解密方法
- C#加密方法
- C#加密方法
- C#加密解密方法
- C#加密方法汇总
- C#加密方法汇总
- C#加密解密方法
- C#加密方法汇总
- C#加密解密方法
- C#加密方法总汇
- C#加密方法汇总
- C#加密方法汇总 .
- C#加密方法汇总
- C# MD5 加密方法
- C# 加密方法汇总
- C#加密方法汇总
- C#常用加密方法
- C# md5加密方法
- 在Visual C#winform中运用API函数获取系统信息
- 如何快速保存ListView内存中大量数据到Excel
- 利用gettext来实现PHP的国际化编程
- 浅谈IC卡与ID卡重大区别
- 2008年最龌龊语录100句,先幽生活一默吧
- C#加密方法
- 数学符号含义收集
- 防止闪烁的ListView显示方案
- 串口通信
- INI文件操作(WINAPI)
- C#中使用哈希表Hashtable
- C#中Vista风格的进度条
- ref 参数与 out 参数
- 手机实现翻屏