How to encode my password to avoid human readability - encode string using base64
0
1393
Python base64 module provides functions for encoding binary data to printable ASCII characters and decoding such encodings back to binary data
>>> import base64
>>> encoded = base64.b64encode(b'data to be encoded')
>>> encoded
b'ZGF0YSB0byBiZSBlbmNvZGVk'
>>> data = base64.b64decode(encoded)
>>> data
b'data to be encoded'
Comment here