mcrypt

Codice PHP:
<?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);
?>