IPython: How to wipe IPython's history selectively & securely?

后端 未结 6 1229
北海茫月
北海茫月 2020-12-29 02:52

I have been learning how to use the paramiko package only to discover that all I stored passwords in plain text in IPython\'s %hist. Not so good.

6条回答
  •  旧时难觅i
    2020-12-29 03:24

    One solution would be:

    sqlite ~/.ipython/profile_default/history.sqlite
    
    delete from history where source like '%password =%';
    

提交回复
热议问题