String hashing function that will produce identical results in Delphi and PHP
delphi, delphi-xe2, hash, php
Solution
You can try the SHA1, crc32 or md5 algorithms all these are part of the PHP core and also exist a lot of Delphi implementations.
- PHP sha1, crc32, md5
- Delphi Delphi Encryption Compendium (DEC) (MD5, SHA-1)
- Delphi SynCrypto (MD5, SHA-1)
- Delphi TurboPower LockBox (MD5, SHA-1)
- Delphi JwsclCryptProvider unit part of the Jwscl library (JEDI Windows Security Code Lib) (MD5, SHA-1)
Problem
I need a string hashing function that will produce identical results in Delphi XE2 and PHP. What are my options? Preference will be given to a free, simple and cryptographically secure solution.