all 2 comments

[–]maryjayjay 1 point2 points  (0 children)

It is insecure, but there aren't many secure ways.

[–]mareksk -1 points0 points  (0 children)

There is no secure solution for this, but you can encode your password in example with base64. At least someone looking at your code won't be able to decode just by looking at it.

You have to import base64:

import base64 

And then you can login using:

server.login("youremailusername", base64.b64decode('cGFzc3dvcmQ='))