I am wondering the best way to go about this in python. Basically what I want is to encrypt a password (using something in python or open source) while masking the password in a wxpython text field(i.e. instead of 'password' it will show '********' on the screen). I realize I can create a event in wxpython to output * for each char instead of the regular char but I'm wondering if there's a way to show a variable amount of '*' to hide the actual length of the password as well. Any suggestions?