# File lib/archive/zip/codec.rb, line 40
    def self.create_encryption_codec(general_purpose_flags)
      general_purpose_flags &= 0b0000000001000001
      if general_purpose_flags == 0b0000000000000000 then
        require 'archive/zip/codec/null_encryption'
        codec = NullEncryption.new
      elsif general_purpose_flags == 0b0000000000000001 then
        require 'archive/zip/codec/traditional_encryption'
        codec = TraditionalEncryption.new
      end
      raise Zip::Error, 'unsupported encryption codec' if codec.nil?
      codec
    end