##### SUMMARY
See https://github.com/ansible/ansible/blob/88d8cf8197c53edd3bcdcd21429eb4c2bfbf0f6a/lib/ansible/module_utils/basic.py#L699-L706

##### ISSUE TYPE
- Bug Report

##### COMPONENT NAME
lib/ansible/module_utils/basic.py

##### ANSIBLE VERSION
```paste below
2.9
devel
```

''' Remove strings that look like passwords from log messages '''
    
    
    
    
    
    
    
    
    
    
    data = to_native(data)
    output = []
    begin = len(data)
    prev_begin = begin
    sep = 1
    while sep:
        
        try:
            end = data.rindex('@', 0, begin)
        except ValueError:
            
            output.insert(0, data[0:begin])
            break
        
        sep = None
        sep_search_end = end
        while not sep: