Sha256: a3edb856dc011ae9cabca32c5334c694838d0f2f17e3a7b90ee3bf542116df7d

Contents?: true

Size: 679 Bytes

Versions: 38

Compression:

Stored size: 679 Bytes

Contents

module Zip
  module NullEncryption
    def header_bytesize
      0
    end

    def gp_flags
      0
    end
  end

  class NullEncrypter < Encrypter
    include NullEncryption

    def header(_mtime)
      ''
    end

    def encrypt(data)
      data
    end

    def data_descriptor(_crc32, _compressed_size, _uncomprssed_size)
      ''
    end

    def reset!
    end
  end

  class NullDecrypter < Decrypter
    include NullEncryption

    def decrypt(data)
      data
    end

    def reset!(_header)
    end
  end
end

# Copyright (C) 2002, 2003 Thomas Sondergaard
# rubyzip is free software; you can redistribute it and/or
# modify it under the terms of the ruby license.

Version data entries

38 entries across 32 versions & 5 rubygems

Version Path
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
tdiary-5.0.11 vendor/bundle/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
tdiary-5.0.9 vendor/bundle/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
vagrant-unbundled-2.1.1.0 vendor/bundle/ruby/2.5.0/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
vagrant-unbundled-2.0.4.0 vendor/bundle/ruby/2.5.0/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
tdiary-5.0.8 vendor/bundle/ruby/2.5.0/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
tdiary-5.0.8 vendor/bundle/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
vagrant-unbundled-2.0.3.0 vendor/bundle/ruby/2.5.0/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
tdiary-5.0.7 vendor/bundle/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
vagrant-unbundled-2.0.1.0 vendor/bundle/ruby/2.4.0/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
tdiary-5.0.6 vendor/bundle/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
vagrant-unbundled-2.0.0.1 vendor/bundle/ruby/2.4.0/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb
vagrant-unbundled-1.9.8.1 vendor/bundle/ruby/2.4.0/gems/rubyzip-1.2.1/lib/zip/crypto/null_encryption.rb