c# encrypt
来源:互联网 发布:php 调用类的静态方法 编辑:程序博客网 时间:2024/04/28 22:50
给大家一个新的加密方法,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# encrypt
- c# encrypt
- C# DES Encrypt
- Encrypt
- Edit and encrypt Web.Config sections using C# 2.0
- MD5 Encrypt
- my Encrypt
- MD5 Encrypt...
- perl encrypt
- RSA ENCRYPT
- encrypt apk
- Encrypt加密
- GreenDao Encrypt
- Lets Encrypt
- Lets Encrypt
- Openssl Encrypt
- 【强烈推荐】开源C#工具类MSCL系列(八)Encrypt加密解密帮助类
- decrypt与encrypt
- 当鼠标移动到图片上时```就会出现一个保存和另存为 提示。大家估计都见过,怎么去掉它呢
- 太郎先生上周去世了
- 中华人民共和国万岁
- [转贴] 在.NET中嵌入和使用资源文件
- 简单的数组操作字符串,加密可用
- c# encrypt
- C#
- 数值型货币的大写转换
- tomcat下数据库连接池的配置
- WEB 开发技术系列之一
- [转贴]带图片的,多列的DropDownList的实现
- 软件公司美工的地位!
- 一些感兴趣的文章的链接
- 用XMLTHHP实现DropDownList无刷新联动菜单[联动菜单]