Fórum Criptografia de senha #181902
12/09/2003
0
Gostaria de uma função que criptografe a senha do meu Sistema, alguem pode me ajudar !!!!
Casavechia
Curtir tópico
+ 0
Responder
Posts
12/09/2003
Mmtoor
Qual o BD?
MMTOOR2003
MMTOOR2003
Responder
Gostei + 0
13/09/2003
Henry Lima
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;
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)