Forum Moderators: coopster

Message Too Old, No Replies

Sending crypted text between two servers

I want to find a standard encryption PHP algorithm

         

guarriman

11:42 am on Apr 13, 2007 (gmt 0)

10+ Year Member



Hi.

I want to create an API on 'domain1.com' to send crypted information to 'domain2.com', which must decrypt this info with a private password (agreed by 'domain1.com' and 'domain2.com').

I've been using this non-standard encryption PHP function:
http://www.example.com/php-mysql/encryption.html
which was installed in 'domain1.com' and 'domain2.com'.

However, 'domain2.com' is now a non-PHP server, so I'm trying to find a standard encryption PHP algorithm. Therefore, if 'domain1.com' sends a crypted text, 'domain2.com' can decrypt it with a standard method.

Does anybody know any standard encryption PHP algorithm?

Thank you very much.

[edited by: dreamcatcher at 8:17 pm (utc) on April 13, 2007]
[edit reason] Use example.com, thanks. [/edit]

guarriman

11:47 am on Apr 13, 2007 (gmt 0)

10+ Year Member



Mmm... could 'mcrypt' be the solutions for my question?
[php.net...]


<?php
$key = "this is a secret key";
$input = "Let us meet at 9 o'clock at the secret place.";

$encrypted_data = mcrypt_ecb (MCRYPT_3DES, $key, $input, MCRYPT_ENCRYPT);
?>

Is DES a wide used algorithm?
[en.wikipedia.org...]

whoisgregg

2:11 pm on Apr 13, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Considering that Blowfish is the default for mcrypt I'd bet that Blowfish is the most widely supported/used.

However, since the mcrypt library provides a variety of encryption algorithms, I would just compare the list against the list of supported algorithms on the server for 'domain2.'