Sha256: c823820803c3d960ad7341dce7eef4ffaff706eb4b38cb15fe2f76a141ecaeb6

Contents?: true

Size: 673 Bytes

Versions: 76

Compression:

Stored size: 673 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

76 entries across 59 versions & 9 rubygems

Version Path
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/rubyzip-2.3.2/lib/zip/crypto/null_encryption.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/crypto/null_encryption.rb
rubyzip-2.3.2 lib/zip/crypto/null_encryption.rb
rubyzip-2.3.1 lib/zip/crypto/null_encryption.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/rubyzip-2.3.0/lib/zip/crypto/null_encryption.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/crypto/null_encryption.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/crypto/null_encryption.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/rubyzip-2.3.0/lib/zip/crypto/null_encryption.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/crypto/null_encryption.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/rubyzip-2.3.0/lib/zip/crypto/null_encryption.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/crypto/null_encryption.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/rubyzip-2.3.0/lib/zip/crypto/null_encryption.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/crypto/null_encryption.rb
tdiary-5.1.5 vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/crypto/null_encryption.rb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/crypto/null_encryption.rb
tdiary-5.1.4 vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/crypto/null_encryption.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/crypto/null_encryption.rb
tdiary-5.1.3 vendor/bundle/ruby/2.6.0/gems/rubyzip-2.3.0/lib/zip/crypto/null_encryption.rb
tdiary-5.1.3 vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/crypto/null_encryption.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/rubyzip-2.3.0/lib/zip/crypto/null_encryption.rb