    # File lib/chef/encrypted_data_bag_item.rb, line 74
        def self.for(encrypted_value, key)
          case format_version_of(encrypted_value)
          when 1
            Version1Decryptor.new(encrypted_value, key)
          when 0
            Version0Decryptor.new(encrypted_value, key)
          else
            raise UnsupportedEncryptedDataBagItemFormat,
              "This version of chef does not support encrypted data bag item format version '#{format_version}'"
          end
        end