pb解密算法实现

qq_39776397 2021-01-24 07:04:02
请问下大佬们我要用pb来实现以下的解密算法应该怎么写?
代码 如下:
private string DecryptString(string EncryptString)
{
string DecryptString="";
int n=0;
if (EncryptString.Length > 100)
{
MessageBox.Show("密码长度不能超过100!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return "";
}
for (int i = 0; i < EncryptString.Length;i++ )
{
if (i % 2 == 0)
n = EncryptString[i] + i - 7;
else
n = EncryptString[i] -i +31;
DecryptString = DecryptString + (char)n;
}
return DecryptString;
}
...全文
264 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
belsai 2021-02-03
  • 打赏
  • 举报
回复
在网上搜下这个文件

1,079

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧