The Aloaha PDF Crypter API can be used for certificate based encryption. The PDF is encrypted with the public key of the user(s) certificate(s). Only the holder of the right private key/certificate will be able to open/view the PDF document in his free Adobe Reader. This is the ideal solution for confidential documents or ebook stores. It is also frequently used for SOX compliance!
To enable the Aloaha PDF Crypter API the Aloaha PDF Suite Enterprise Professional License is required! Please make sure to copy the license or evaluation license into the key and crypterkey directory!
Please find below a sample VBS code to demonstrate how easy the API is to use.
'create crypter object
'add public keys of recipients. More than one public key is allowed!
'read PDF document to be encrypted from File
'call certificate based PDF encryption
If pdfstring<>"" Then
'write encrypted PDF to disk
Although we really tried hard, there are always questions left open. But perhaps somebody else had already put the same question? Please check!
Why your sample code keeps to use 100% CPU time for over 11 hours at crypter.encrypt_pdf_string function call? (I am using the aloaha.cer as public key with suite_sdk),
That is definetly not a normal behavior. I suggest you either try a different machine or send us the code you are using so we check it for errors.
is it possible to use key published in Active directory? All users normaly have their public keys published in AD.
Yes, it is possible to use the public key published in AD. Just see our API on http://www.aloaha.com/software-development/ldap-active-directory-encryption.php.
In case you need an evaluation key or assitance for your project please send an email to firstname.lastname@example.org
If not, please do not hesitate to send us your question. We would be glad to answer it.