code: def crypttab(config='/etc/crypttab'):
      '''
      List the contents of the crypttab
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' cryptdev.crypttab
      '''
      ret = {}
      if not os.path.isfile(config):
          return ret
      with salt.utils.files.fopen(config) as ifile:
          for line in ifile:
              line = salt.utils.stringutils.to_unicode(line).rstrip('\n')
              try:
                  entry = _crypttab_entry.dict_from_line(line)
  
                  entry['options'] = entry['options'].split(',')
  
                  # Handle duplicate names by appending `_`
                  while entry['name'] in ret:
                      entry['name'] += '_'
  
                  ret[entry.pop('name')] = entry
              except _crypttab_entry.ParseError:
                  pass
  
      return ref crypttab(config='/etc/crypttab'):
      '''
      List the contents of the crypttab
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' cryptdev.crypttab
      '''
      ret = {}
      if not os.path.isfile(config):
          return ret
      with salt.utils.files.fopen(config) as ifile:
          for line in ifile:
              line = salt.utils.stringutils.to_unicode(line).rstrip('\n')
              try:
                  entry = _crypttab_entry.dict_from_line(line)
  
                  entry['options'] = entry['options'].split(',')
  
                  # Handle duplicate names by appending `_`
                  while entry['name'] in ret:
                      entry['name'] += '_'
  
                  ret[entry.pop('name')] = entry
              except _crypttab_entry.ParseError:
                  pass
  
      return ret
docs: List the contents of the crypttab
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' cryptdev.crypttab