String encrypt in PHP, decrypt in Delphi

I need you to write two pieces of code.

Implement function encrypt($data) in PHP. The function encrypts a given string data and encodes the result to be url safe. A checksum is also added to the result.

Implement Function Decrypt(data : String; var Log : TStringList) : String; in Delphi. The function decrypts given data encrypted by the PHP function code. The Decrypt function also checks the checksum added by encrypt(). If an error occurs, such as the checksums do not match, return an empty string and write an error message to the given Log. The Log is used for debug purposes, so use it to report the process of the Decrypt process.

You can use whatever encryption algorithm and checksum algorithm you want, but the algorithms must be off-the-shelf, i.e. not custom made. The encoding algorithm can be custom made. If you can implement any algorithm, implement AES, Twofish or Blowfish.

For the encryption password, use "Foobar".

Usage example: [url removed, login to view] contains the Encrypt function and it outputs the result to the screen. So a Delphi program with Decrypt function included, can execute [url removed, login to view], get the encrypted data, decrypt it and show it to the user.

Note: Both functions must be unicode safe. I.e. the data can contain unicode characters. The Delphi code must work under Delphi 2010.

Habilidades: Delphi, PHP

Veja mais: delphi php encrypt function, php string checksum, encrypt decrypt php delphi, delphi php encrypt decrypt, delphi encrypt php decrypt, to string, string the, string match algorithm, string match, string i, string algorithms, string algorithm, php program code, message encryption algorithm, match string, match 3 algorithm, get string c, example of algorithms, c get string, algorithm string

Acerca do Empregador:
( 591 comentários ) Turku, Thailand

ID do Projeto: #3480311

Concedido a:


See private message.

$34 USD em 5 dias
(10 Comentários)

3 freelancers estão ofertando em média $88 nesse trabalho


See private message.

$187 USD in 5 dias
(4 Comentários)

See private message.

$42.5 USD in 5 dias
(0 Comentários)