Module: Zip::TraditionalEncryption

Included in:
TraditionalDecrypter, TraditionalEncrypter
Defined in:
lib/zip/crypto/traditional_encryption.rb

Instance Method Summary collapse

Instance Method Details

#gp_flagsObject



12
13
14
# File 'lib/zip/crypto/traditional_encryption.rb', line 12

def gp_flags
  0x0001 | 0x0008
end

#header_bytesizeObject



8
9
10
# File 'lib/zip/crypto/traditional_encryption.rb', line 8

def header_bytesize
  12
end

#initialize(password) ⇒ Object



3
4
5
6
# File 'lib/zip/crypto/traditional_encryption.rb', line 3

def initialize(password)
  @password = password
  reset_keys!
end