module HexaPDF::Encryption::Identity
The identity encryption/decryption algorithm.
This “algorithm” does nothing, i.e. it returns the given data as is without encrypting or decrypting it.
See: PDF1.7 s7.6.5
Public Class Methods
encrypt(_key, data)
click to toggle source
Just returns the given data
.
# File lib/hexapdf/encryption/identity.rb, line 50 def encrypt(_key, data) data end
Also aliased as: decrypt
encryption_fiber(_key, source)
click to toggle source
Just returns the given source
fiber.
# File lib/hexapdf/encryption/identity.rb, line 56 def encryption_fiber(_key, source) source end
Also aliased as: decryption_fiber