Parent

Methods

Archive::Zip::Codec::TraditionalEncryption::Base

Archive::Zip::Codec::TraditionalEncryption::Base provides some basic methods which are shared between Archive::Zip::Codec::TraditionalEncryption::Encrypt and Archive::Zip::Codec::TraditionalEncryption::Decrypt.

Do not use this class directly.

Attributes

io[R]

The delegate IO-like object.

mtime[R]

The last modified time of the entry being encrypted. This is used in the entryption header as a way to check the password.

password[R]

The encryption key.

Public Class Methods

new(io, password, mtime) click to toggle source

Creates a new instance of this class. io must be an IO-like object to be used as a delegate for IO operations. password should be the encryption key. mtime must be the last modified time of the entry to be encrypted/decrypted.

# File lib/archive/zip/codec/traditional_encryption.rb, line 23
def initialize(io, password, mtime)
  @io = io
  @password = password.nil? ? '' : password
  @mtime = mtime
  initialize_keys
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.