def METHOD_NAME(raw_creds):
    """Return a dictionnary of credentials
    elements from raw format.
    """
    result = {}
    result['USER'] = raw_creds[:raw_creds.find('@')]
    result['HOST'] = raw_creds[raw_creds.find('@')+1:]
    result['PASS'] = ''
    if '*' in raw_creds:
        result['HOST'] = raw_creds[raw_creds.find('@')+1:raw_creds.find('*')]
        result['PASS'] = raw_creds[raw_creds.find('*')+1:]
    return result