Problems with mcrypt.
| From: | Toke Herkild | Date: | Thu, 11 Oct 2001 11:59:54 +0000 |
| Subject: | Problems with mcrypt. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-70779@lists.php.net to get a copy of this message | ||
<?
$key = "secret key";
$input = $inputOrd;
if ($ACTION == "Send"){
$key = "secret key";
$input = $inputOrd;
$td = mcrypt_module_open(MCRYPT_DES, "", MCRYPT_MODE_ECB, "");
$iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_RAND);
mcrypt_generic_init($td, $key, $iv);
$encrypted_data = mcrypt_generic($td, $input);
mcrypt_generic_end($td);
}
?>
<FORM action="testcrypt.php" method="POST" name="testcrypt"
enctype="multipart/form-data">
<TABLE>
<TD>
<INPUT TYPE="TEXT" name="inputOrd" VALUE="<? echo $inputOrd
?>">
</TD>
<td>
<? echo $encryptet_data ?>
</td>
</TABLE>
<INPUT TYPE="SUBMIT" name="ACTION" value="Send">
</FORM>
executing this script results in a server message :
Fatal error: Call to unsupported or undefined function mcrypt_module_open()
in /hotel/hodclub/WWW/kalender/testcrypt/testcrypt.php on line 8
Does anybody know if this error has anything to do with the script or the
server on which it runs ?!?