def parse(iv, encrypted_key, encrypted_text)
        case @format
        when :delimited
          [iv, field_delimiter, encrypted_key, field_delimiter, encrypted_text].join('')
        when :json
          hash = {}
          hash['iv'] = iv
          hash['key'] = encrypted_key
          hash['message'] = encrypted_text
          hash.to_json
        end
      end
def parse(iv, encrypted_key, encrypted_text)
        case @format
        when :delimited
          [iv, field_delimiter, encrypted_key, field_delimiter, encrypted_text].join('')
        when :json
          hash = {}
          hash['iv'] = iv
          hash['key'] = encrypted_key
          hash['message'] = encrypted_text
          hash.to_json
        end
      end
Format the final encrypted string to be returned depending
 on specified format.