In this video I show you tips and tricks on how to safely handle passwords in your python script, and at least make as hard as possible for the attacker to get the right info as possible.
Github: https://github.com/r3ap3rpy/python/blob/master/PasswordMGMT.zip