Class: Zip::TraditionalDecrypter
Overview
Instance Method Summary
collapse
#gp_flags, #header_bytesize, #initialize
Instance Method Details
#check_integrity!(_io) ⇒ Object
91
|
# File 'lib/zip/crypto/traditional_encryption.rb', line 91
def check_integrity!(_io); end
|
#decrypt(data) ⇒ Object
80
81
82
|
# File 'lib/zip/crypto/traditional_encryption.rb', line 80
def decrypt(data)
data.unpack('C*').map { |x| decode x }.pack('C*')
end
|
#reset!(header) ⇒ Object
84
85
86
87
88
89
|
# File 'lib/zip/crypto/traditional_encryption.rb', line 84
def reset!()
reset_keys!
.each_byte do |x|
decode x
end
end
|