     buffer += "#{find_label(element)}: #{$(element).val()}\n"
   return buffer
 
-# Future code for group encrypt function
 find_label = (element) ->
   id = element.id
   placeholder = $(element).attr("placeholder")

    $("*[name='#{values[i].name}']").val(values[i].value)

group_encryption = (form, values, callback) ->
  callback()
  buffer = collect_sources($("*[data-encrypt-source]"))
  console.log buffer

#  write_target(buffer)
#elements_with_name_in = (source, reference) ->

    return placeholder
  else
    return name
wipe_source_fields = (data, encryption_source_names) ->
  for element in data
    if contains(element.name, encryption_source_names)
      element.value = ""

#write_target = (buffer )->
#  target = $("*[data-encrypt-target]")
