note 28462 added to ref.mcrypt

From: Date: Tue, 14 Jan 2003 07:57:49 +0000
Subject: note 28462 added to ref.mcrypt
Groups: php.notes 
Request: Send a blank email to php-notes+get-42104@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? -- http://www.php.net/manual/en/ref.mcrypt.php http://master.php.net/manage/user-notes.php?action=edit+28462 http://master.php.net/manage/user-notes.php?action=delete+28462 http://master.php.net/manage/user-notes.php?action=reject+28462

« previous php.notes (#42104) next »