Is there a possibility to encrypt a PDF using openssl private/public key in PHP? Appreciate if you can provide an answer with an example.
Yes. You would encrypt it with a public key and decrypt it with the private key.
As per this blog post , I recommend using PHPSecLib instead of interfacing with OpenSSL directly, as there are a lot of things that can go wrong. In particular: padding oracle attacks.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.