Sujet : Re: Memorizing a 128 bit / 256 bit hex key
De : rich (at) *nospam* example.invalid (Rich)
Groupes : sci.cryptDate : 19. Jun 2024, 03:59:13
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4thi1$1p20n$3@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cri-Cri <
cri@cri.cri.invalid> wrote:
On Tue, 18 Jun 2024 22:01:19 +0200, Stefan Claas wrote:
alias del=">~/.bash_history;history -cw;"
Can't you stop Bash from ever creating a history?
https://www.cyberciti.biz/faq/disable-bash-shell-history-linux/
You can, and for a special purpose system intended for "key access"
doing so is probably the best practice.
Meanwhile, if one is doing key access on a system also used for other,
general purpose purposes, fully disabling history does remove a *very*
useful feature in the general case.
The workaround can be to configure bash to not store commands that
begin with a space:
HISTCONTROL
A colon-separated list of values controlling how
commands are saved on the history list. If the list of
values includes ignorespace, lines which begin with a
space character are not saved in the history list.
Of course then one does have to remember to prefix any command that
should not be saved in history with a space.