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, &_block)
Alias for: encrypt
decryption_fiber(key, source, &_block)
Alias for: encryption_fiber
encrypt(key, data, &_block)

Encrypts the given data with the key.

See: PDF2.0 s7.6.3

Also aliased as: decrypt
encryption_fiber(key, source, &_block)

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

Also aliased as: decryption_fiber