Jump to content

Problem encryption!!!


Gustavo.deo

Recommended Posts

 

Good Morning!!! I have a password encryption function to write to the database !!! But I'm having problems ... in the application to win the word pave2010 in function gets zk€o<:;: However due to unigui using utf-8, it returns zk'#$0080'o<:;: I have tried to change the charset in servermodule but I did not succeed ... Any suggestion??

 

 

 

function TFuncoes.EncryptPassWord(sPassWord:String):String;

var

  i   : Integer;

begin

  Result := sPassWord;

  for i := 1 to Length(Result) do

    Result := Chr(Ord(Result) + 10);

end;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...