module HexaPDF::Encryption::ARC4::ClassMethods

Convenience methods for decryption and encryption that operate according to the PDF specification.

These methods will be available on the class object that prepends the ARC4 module.

Public Instance Methods

decrypt(key, data)
Alias for: encrypt
decryption_fiber(key, source)
Alias for: encryption_fiber
encrypt(key, data)

Encrypts the given data with the key.

See: PDF2.0 s7.6.3

Also aliased as: decrypt
encryption_fiber(key, source)

Returns a Fiber object that encrypts the data from the given source fiber with the key.

Also aliased as: decryption_fiber