H
hc
Unregistered / Unconfirmed
GUEST, unregistred user!
function Encrypt(const S: String
Key: Word): String;
var
I: byte;
begin
Result[1] := S[1];
for I := 2 to Length(S) do begin
Result := char(byte(S) xor (Key shr 8));
Key := (byte(Result) + Key) * C1 + C2;
end;
end;
抄来的。运行出错。
xxx.exe raised exception class EAccessViolation with message 'Access
violation at address 004B0DC2 in module 'xxx.exe'.Write of address
00000000'..................
Key: Word): String;
var
I: byte;
begin
Result[1] := S[1];
for I := 2 to Length(S) do begin
Result := char(byte(S) xor (Key shr 8));
Key := (byte(Result) + Key) * C1 + C2;
end;
end;
抄来的。运行出错。
xxx.exe raised exception class EAccessViolation with message 'Access
violation at address 004B0DC2 in module 'xxx.exe'.Write of address
00000000'..................