H
hxiaomin888
Unregistered / Unconfirmed
GUEST, unregistred user!
const
C1=19798;
C2=81799;
function Encrypt( S: String;
Key: Word): String;
var
I: Integer;
j: Integer;
begin
Result := S;
for I := 1 to Length(S)do
begin
Result := char(byte(S) xor (Key shr 8));
Key := (byte(Result) + Key) * C1 + C2;
end;
s:=Result;
Result:='';
for i:=1 to length(s)do
begin
j:=Integer(s);
Result:=Result + Char(65+(j div 26))+Char(65+(j mod 26));
end;
end;
这行代码返回的为什么一定是字每:Result:=Result + Char(65+(j div 26))+Char(65+(j mod 26));
C1=19798;
C2=81799;
function Encrypt( S: String;
Key: Word): String;
var
I: Integer;
j: Integer;
begin
Result := S;
for I := 1 to Length(S)do
begin
Result := char(byte(S) xor (Key shr 8));
Key := (byte(Result) + Key) * C1 + C2;
end;
s:=Result;
Result:='';
for i:=1 to length(s)do
begin
j:=Integer(s);
Result:=Result + Char(65+(j div 26))+Char(65+(j mod 26));
end;
end;
这行代码返回的为什么一定是字每:Result:=Result + Char(65+(j div 26))+Char(65+(j mod 26));