Criptografar variavel

Delphi

29/07/2003

Como faço para criptografar uma variável ?


Ademilson Moreira

Ademilson Moreira

Curtidas 0

Respostas

Rodrigo_rcp

Rodrigo_rcp

29/07/2003

function EnDecryptString(StrValue : String; Chave: Word) : String;
var
I: Integer;
OutValue : String;
begin
OutValue := ´´;
for I := 1 to Length(StrValue) do
OutValue := OutValue + char(Not(ord(StrValue[I])-Chave));
Result := OutValue;
end;


Funciona com String.


GOSTEI 0
POSTAR