Encrypt & Decrypt a PDF using Swift for iOS
Encrypt a document with a key generated from a passphrase, and use the same passphrase to later decrypt it. Get additional resources by visiting our guide on PDF document security in iOS or our PSPDFCryptor API Guide.
This code sample is an example that illustrates how to use our SDK. Please adapt it to your specific use case.