I want to write a password to a configfile but instead of writing the password as plain text i would like to save it in a human unreadable format.

the security doesn't need to be excellent, but the purpose is that users that open the file can not read the password immediately...

the function also has to be able to decrypt the password again so i can use it in my application.

is there any simple python function for this or a project that uses such a fuction?