We help IT Professionals succeed at work.

Encrypt in Delphi, Decrypt in PHP and Vice Versa

cebasso
cebasso asked
on
Hello,

I was trying to do a method where i'm able to encrypt in Delphi and decrypt in PHP and vice versa

But, for while no success :(

I'm using Lockbox components in Delphi, and PHP i'm justing testing every example that i found in google HAHA
:D

Somebody already did that?

Regards,
Carlos
Comment
Watch Question

Developer
CERTIFIED EXPERT
Commented:

Author

Commented:
Hello,
Can be simple like that, but doesn't work :(
i tried with the PHP code below, in Delphi tried to Decode and no success...
have some idea?

<?php
  echo base64_encode("my base64 encoded string");
?>

Open in new window

Author

Commented:
The text "my base64 encoded string" encoded in Delphi

RNaWOc5pPJOq86LkOszaPMGWStHoQMvd
 now in PHP
bXkgYmFzZTY0IGVuY29kZWQgc3RyaW5n

Author

Commented:
Done!
I found the solution for base64 between Delphi x PHP here
http://www.szutils.net/Delphi/Delphi.php
SZCodeBaseX.pas
and come with a demo :)
ty