国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發(fā) > 綜合 > 正文

c# encrypt

2024-07-21 02:18:38
字體:
供稿:網(wǎng)友
給大家一個(gè)新的加密方法,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è)會(huì)員,創(chuàng)建你的web開發(fā)資料庫,
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 榆树市| 平遥县| 邢台县| 屯留县| 高平市| 景宁| 丹巴县| 高尔夫| 鄂托克旗| 玉龙| 彭水| 阜城县| 安泽县| 大埔区| 陇西县| 万盛区| 金沙县| 滨海县| 恭城| 郓城县| 普兰县| 平度市| 阿图什市| 西平县| 淮滨县| 华蓥市| 错那县| 易门县| 兰州市| 永福县| 安康市| 瑞丽市| 喜德县| 衡东县| 夏津县| 塔城市| 庄河市| 平遥县| 久治县| 丽江市| 石泉县|