PSPDFDocumentEncryptionAlgorithm

Objective-C

enum PSPDFDocumentEncryptionAlgorithm : NSUInteger {}

Swift

@frozen enum DocumentEncryptionAlgorithm : UInt, @unchecked Sendable

The algorithm to use to encrypt a document.

  • AES (Advanced Encryption Standard) is a secure, symmetric block cipher.

    Declaration

    Objective-C

    PSPDFDocumentEncryptionAlgorithmAES

    Swift

    case AES = 0
  • RC4 algorithm (Rivest Cipher 4 also known as ARC4 or ARCFOUR). This algorithm is deprecated in PDF 2.0.

    Declaration

    Objective-C

    PSPDFDocumentEncryptionAlgorithmRC4

    Swift

    case RC4 = 1