Re: Decryption
| From: | DvDmanDT | Date: | Wed, 30 Nov 2005 00:03:43 +0000 |
| Subject: | Re: Decryption | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-26550@lists.php.net to get a copy of this message | ||
.. What exactly are you trying to do? If you are trying to decrypt user
input, then no, it's not going to work.. You'll have to read the input
first, then pass that to mcrypt_decrypt, then write that to your outfile..
--
// DvDmanDT
mail: dvdmandt¤telia.com
msn: dvdmandt¤hotmail.com
"kumar kumar" <ripples_it@yahoo.com> skrev i meddelandet
news:20051123084523.24299.qmail@web52209.mail.yahoo.com...
> Hi
>
> Is this Code will work for Decryption
>
> $key = md5($_REQUEST['KEY'});
> $fp = fopen($fname,"w");
> $getdata = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key,
> fopen("php://input", "r"),MCRYPT_MODE_ECB);
>
> while(!feof($getdata)){
>
> $data = fread($getdata, 2048);
> fwrite($fp,$data);
>
> }
> Any Modifications Needed
> With Regards
> Kumar
>
>
>
>
>
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com