PSPDFDocumentEncryptionAlgorithm

Objective-C

enum PSPDFDocumentEncryptionAlgorithm {}

Swift

@frozen enum DocumentEncryptionAlgorithm : UInt

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