Criptografia de senha
Gostaria de uma função que criptografe a senha do meu Sistema, alguem pode me ajudar !!!!
Casavechia
Curtidas 0
Respostas
Mmtoor
12/09/2003
Qual o BD?
MMTOOR2003
MMTOOR2003
GOSTEI 0
Henry Lima
12/09/2003
Esta função é bastante simples e muito útil ela serve para encriptar e desencriptar strings, espero que possa resolver seu problema.
Function Encriptar(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;
Function Encriptar(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;
GOSTEI 0