Class: Zip::TraditionalDecrypter
Overview
Instance Method Summary
collapse
#gp_flags, #header_bytesize, #initialize
Instance Method Details
#check_integrity!(_io) ⇒ Object
89
|
# File 'lib/zip/crypto/traditional_encryption.rb', line 89
def check_integrity!(_io); end
|
#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!()
reset_keys!
.each_byte do |x|
decode x
end
end
|