|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-10-13 04:01 UTC] uramihsayibok at gmail dot com
[2010-10-13 12:44 UTC] derick@php.net
-Status: Open
+Status: Bogus
[2010-10-13 12:44 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 20:00:01 2025 UTC |
Description: ------------ the mcrypt_encrypt and mcrypt_decrypt functions are not accurate working. please see script below. Test script: --------------- $data = "Cộng hòa xã hội chủ nghĩa việt nam, độc lập tự do hạnh phúc"; $iv_size = mcrypt_get_iv_size(MCRYPT_3DES, MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $key = "01"; $crypttext = mcrypt_encrypt(MCRYPT_3DES, $key, $data, MCRYPT_MODE_ECB, $iv); $key = "10"; $decrypt = mcrypt_decrypt (MCRYPT_3DES, $key , $crypttext , MCRYPT_MODE_ECB, $iv) ; then result are : $data = $decrypt ????