Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,630 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,069 people online right now. Registration is fast and FREE... Join Now!




Decryption in zip file

 
Reply to this topicStart new topic

Decryption in zip file, crc32(key(0),char)

michaelfung
post 8 Jun, 2005 - 01:44 AM
Post #1


New D.I.C Head

*
Joined: 8 Jun, 2005
Posts: 2

hi, i'm currently making a php to unzip zip files on a server. I've come accross some zip files that is encrypted with traditional PKWARE Encryption.
Although this document provides the pseudo code to decrypt the files, i cannot successfully change it into php. The main problem is that it needs a function called crc32(key(0),char) and i don't know how to write this function out. Please help me. Thank you very much.
User is offlineProfile CardPM

Go to the top of the page

Nova Dragoon
post 8 Jun, 2005 - 07:14 AM
Post #2


The Innocent Shall Suffer, Big Time

Group Icon
Joined: 16 Aug, 2001
Posts: 6,128



Thanked 4 times

Dream Kudos: 515

Expert In: Python, Linux

My Contributions


PHP has a crc32 function, however it does not take 2 arguments

http://us3.php.net/crc32
User is offlineProfile CardPM

Go to the top of the page

michaelfung
post 8 Jun, 2005 - 10:43 AM
Post #3


New D.I.C Head

*
Joined: 8 Jun, 2005
Posts: 2

I've tried crc32(str1.str2) and crc32(str2.str1) but both of them do not give a correct result. crazy.gif
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 03:56AM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month