Re: Decryption

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



.. 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@xxxxxxxxx> skrev i meddelandet 
news:20051123084523.24299.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxx
> 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 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux