Encrypt pdf files with mcrypt and php

Posted by microchasm on Server Fault See other posts from Server Fault or by microchasm
Published on 2010-05-20T00:57:51Z Indexed on 2010/05/20 1:01 UTC
Read the original article Hit count: 285

Filed under:
|
|

I'm currently set up with a CentOS box that utilizes mcrypt to encrypt/decrypt data to/from the database. In my haste, I forgot that I also need a solution to encrypt files (primarily pdf, with a xls and txt file here and there).

Is there a way to utilize mcrypt to encrypt pdf files? I understand the possibility of file_get_contents() with txt; is a similar solution available for other formats?

Thanks!

© Server Fault or respective owner

Related posts about php

Related posts about encryption