国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 河池市| 宣汉县| 沈丘县| 桑植县| 平定县| 昌平区| 商都县| 百色市| 诸暨市| 旺苍县| 阿合奇县| 黔西县| 和静县| 德化县| 苏州市| 诏安县| 克东县| 金秀| 收藏| 花垣县| 乌兰察布市| 葫芦岛市| 沂源县| 手游| 梁山县| 玉龙| 新郑市| 盖州市| 平乐县| 乌什县| 汉沽区| 迭部县| 太和县| 万全县| 新竹市| 东乡族自治县| 凤山县| 文昌市| 邵东县| 平定县| 莱芜市|