cvs: phpdoc /en/reference/mcrypt/functions mcrypt-encrypt.xml

From: Date: Fri, 25 Apr 2003 18:43:09 +0000
Subject: cvs: phpdoc /en/reference/mcrypt/functions mcrypt-encrypt.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969352865@lists.php.net to get a copy of this message
derick Fri Apr 25 14:43:09 2003 EDT Modified files: /phpdoc/en/reference/mcrypt/functions mcrypt-encrypt.xml Log: - Example layout (it was too wide) Index: phpdoc/en/reference/mcrypt/functions/mcrypt-encrypt.xml diff -u phpdoc/en/reference/mcrypt/functions/mcrypt-encrypt.xml:1.3 phpdoc/en/reference/mcrypt/functions/mcrypt-encrypt.xml:1.4 --- phpdoc/en/reference/mcrypt/functions/mcrypt-encrypt.xml:1.3 Sun May 12 17:00:19 2002 +++ phpdoc/en/reference/mcrypt/functions/mcrypt-encrypt.xml Fri Apr 25 14:43:09 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/mcrypt.xml, last change in rev 1.7 --> <refentry id="function.mcrypt-encrypt"> <refnamediv> @@ -56,13 +56,14 @@ <programlisting role="php"> <![CDATA[ <?php - $iv = mcrypt_create_iv (mcrypt_get_iv_size (MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND); + $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB); + $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $key = "This is a very secret key"; $text = "Meet me at 11 o'clock behind the monument."; - echo strlen ($text)."\n"; + echo strlen($text)."\n"; - $crypttext = mcrypt_encrypt (MCRYPT_RIJNDAEL_256, $key, $text, MCRYPT_MODE_ECB, $iv); - echo strlen ($crypttext)."\n"; + $crypttext = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $text, MCRYPT_MODE_ECB, $iv); + echo strlen($crypttext)."\n"; ?> ]]> </programlisting>

« previous php.doc (#969352865) next »