I want to try out a system where I use a key and salt it with the name of a website, then hash it and use the hash as my password on the site that it's salted with. But, I'd like to do this securely. My concerns are:
The hash (my password for a given site) being printed to the terminal
The hash, as well as my universal key used to generate the hash, being in memory.
Would it be safe to print the password to the terminal, and just close the terminal after? Would the key and password be gone from memory and disk once Python has completed? I'm going to use getpass, but does that provide any actual security against anything but over-shoulder lookers? Is there a way to securely overwrite the raw key and the hash/password in RAM?