Class: Zip::TraditionalDecrypter
- Includes:
- TraditionalEncryption
- Defined in:
- lib/zip/crypto/traditional_encryption.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods included from TraditionalEncryption
#gp_flags, #header_bytesize, #initialize
Instance Method Details
#decrypt(data) ⇒ Object
78 79 80 |
# File 'lib/zip/crypto/traditional_encryption.rb', line 78 def decrypt(data) data.unpack('C*').map { |x| decode x }.pack('C*') end |
#reset!(header) ⇒ Object
82 83 84 85 86 87 |
# File 'lib/zip/crypto/traditional_encryption.rb', line 82 def reset!(header) reset_keys! header.each_byte do |x| decode x end end |