HexaPDF::Encryption::ARC4
Inherits Reference < Object
Iplementation of the general encryption algorithm ARC4.
See: PDF1.7 s7.6.2
Constants
INITIAL_STATE = Bytes.new(256)
The initial state which is then modified by the key-scheduling algorithm
Constructors
Class methods
decrypt(key, data)
SourceInstance methods
process(data : Bytes)
Processes the given data.
Since this is a symmetric algorithm, the same method can be used for encryption and decryption.