note 28462 deleted from ref.mcrypt by tix

From: Date: Tue, 14 Jan 2003 08:31:45 +0000
Subject: note 28462 deleted from ref.mcrypt by tix
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-42106@lists.php.net to get a copy of this message
hi: I have a questions,will somebody help me? That is: I want to send a message to a unix server (by socket),The server can just accept ENCRYPTED message (Standard DES),so I use the scripts below: ($buffer is the data) $key="abcdefgh"; $cipher=MCRYPT_DES; $mode=MCRYPT_ENCRYPT; $iv = mcrypt_create_iv(mcrypt_get_iv_size ($cipher, MCRYPT_MODE_CFB), MCRYPT_RAND); $buffer=mcrypt_cfb($cipher, $key, $buffer, $mode, $iv); but the server cannot decrypt the encrtypted message to the original. will somebody tell me why? Dose that my scrtpts is not a standard DES?

« previous php.notes (#42106) next »