def make_key(self, password): """Creates an encryption key from the default password or prompts for a new password.""" self.key = hashlib.sha256(password.encode("utf-8")).digest()
https://docs.python.org/2/library/hashlib.html#key-derivatio... (at least)
That way the history for the current window remains but after the window closes any accidental password-on-the-command-line mistakes will vaporize.
for i in .sh_history .bash_history .lesshst .mysql_history etc do ln -s /dev/null $i done
# ignore repeated, space-started, and casual commands export HISTIGNORE="&:[ ]*:l[sl]:[bf]g:exit"
Works well also.