This project is read-only.

PPT Encryption

Jul 5, 2012 at 3:08 PM

Is there any way, using the PHPPowerPoint library, to create a presentation with encryption to prevent it from being modified?

I can do it "by hand" from PowerPoint 2010 as explained in the tutorial here: but I'm looking for a way to do it automatically from an Apache server.

By doing an openXML File Comparison, I've found one line of code that gets added to an encrypted document, and it's right at the very end of /ppt/presentation.xml:

 <p:modifyVerifier cryptAlgorithmClass="hash" cryptAlgorithmSid="4" cryptAlgorithmType="typeAny" cryptProviderType="rsaFull" hashData="1AK5pLZ6/u5YRzzx3zSGNFWP7Hw=" saltData="wzlXT/tOyowlGYYS1J5Vlg==" spinCount="100000"/>

I may find that I'll need to use PHPPowerPoint to generate the file, then another server-side program to open up the contents and add that line but if anyone knows a way to do this directly with the PHPPowerPoint library please let me know!