Module: Zip::TraditionalEncryption

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

Instance Method Summary collapse

Instance Method Details

#gp_flagsObject


14
15
16
# File 'lib/zip/crypto/traditional_encryption.rb', line 14

def gp_flags
  0x0001 | 0x0008
end

#header_bytesizeObject


10
11
12
# File 'lib/zip/crypto/traditional_encryption.rb', line 10

def header_bytesize
  12
end

#initialize(password) ⇒ Object


5
6
7
8
# File 'lib/zip/crypto/traditional_encryption.rb', line 5

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