3 ms·
If you are relying on that encryption, just remember to clear your bash history :)
by chrisfarms 12y ago
If you are relying on that encryption, just remember to clear your bash history :)
- mdaniel 12y agoI've enjoyed great success by symlinking the various history files to /dev/null 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
- mentat 12y agodef 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() Crack unsalted sha256 of ascii space NSA... https://docs.python.org/2/library/hashlib.html#key-derivation-function https://docs.python.org/2/library/hashlib.html#key-derivatio... (at least)
- gcr 12y agoNo salt?
- lloeki 12y agoStart command with a space: it won't go to the history: # ignore repeated, space-started, and casual commands export HISTIGNORE="&:[ ]*:l[sl]:[bf]g:exit"
- jmottz 12y agoexport HISTINGNORE="jrnl *" Works well also.