class HexaPDF::Encryption::FastARC4

Parent

Implementation of the general encryption algorithm ARC4 using OpenSSL as backend.

See: PDF2.0 s7.6.3

Public Class Methods

new(key)

Creates a new FastARC4 object using the given encryption key.

Public Instance Methods

decrypt(data)
Alias for: process
encrypt(data)
Alias for: process
process(data)

Processes the given data.

Since this is a symmetric algorithm, the same method can be used for encryption and decryption.

Also aliased as: decrypt, encrypt