****请帮忙解释是什么意思!!!!!!******

sailorsofth 2007-10-15 03:51:10
function TForm_Login.jmPass(str: string): string;
var
m,str1: string;
asc,asc1: byte;
i: integer;
begin
m := '\iklop;lk,kjjhh\';
for i:=1 to length(str) do
begin
asc := ord(str[i]);
asc := asc and $F;
asc1 := ord(m[i]);
asc1 := asc1 and $F;
asc1 := asc xor asc1;
asc := ord(str[i]);
asc := asc and $F0;
asc := asc + asc1;
str1 := str1 + chr(asc);
end;
result := str1;
end;
...全文
90 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
喝口水 2007-10-15
  • 打赏
  • 举报
回复
楼上正确
天行归来 2007-10-15
  • 打赏
  • 举报
回复
asc1 := asc1 and $F; ---asc1 的高四位设置成0,比如 11011000 and $F=00001000
asc := asc and $F0; ---asc 的低四位设置成0,比如 11011000 and $F0=11010000
cuiyue4420 2007-10-15
  • 打赏
  • 举报
回复
按位与
sailorsofth 2007-10-15
  • 打赏
  • 举报
回复
asc1 := asc1 and $F;
asc := asc and $F0;

主要是这两句是什么意思!!
luxuewei5214 2007-10-15
  • 打赏
  • 举报
回复
加密处理
hongqi162 2007-10-15
  • 打赏
  • 举报
回复
自定义的一个加密算法

2,497

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 数据库相关
社区管理员
  • 数据库相关社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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