Zsh Mailing List Archive
Messages sorted by:
Re: Encrypting history?
- X-seq: zsh-users 14691
- From: Guido van Steen <gvsteen@xxxxxxxxx>
- To: Lloyd Zusman <ljz@xxxxxxxxxx>
- Subject: Re: Encrypting history?
- Date: Sat, 26 Dec 2009 17:47:57 -0800 (PST)
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1261878478; bh=dCpv0pF/zSOLbjbsePih5tYChtcLO6R/vL1sq3gFs5o=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=XjleyK4rex+KJ8mFfdMecdShccu7g+DOepHHPmAAsvi6tr/dKvDbYBqlAj7sOzNGTh2tM5XZk6RwnVORt8GuzmIOQ0g41nTlmQDi/0fDOYMRiLPuuBzS028UgaWR20/hhGCqHLrkh5zlZqlAabQYi5zl+3PpXqN9u0I7LxKf+cs=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=aVF5SCph/lbXAelf1HBMkTOLZIVq+S2vfi592DcJpglS4OZCYsXxTwX5DbYS5kcOVhYP8hphXYvILlWMMcsN4fR9Qiza9ifB2kPqkVfGQecOpmL8P1+N8HCMlQF3XfdFj7egXeeGh993+3PWguen64qTQkpp3Nbwj/OLBhRHGsQ=;
- In-reply-to: <m2zl55uyzl.fsf@xxxxxxxxxx>
- List-help: <mailto:email@example.com>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Interesting idea indeed! You might miss a feature like sharing a history file across sessions.
You could overcome this by seperately saving all your sessions' increments to your history file, and then incorporating them into the history file when you login again.
This way the entries of your history file might get out of order, but you could probably handle this by also saving the time when your commands were issued.
I would also be interested in a zsh extension like that.
--- On Sun, 27/12/09, Lloyd Zusman <ljz@xxxxxxxxxx> wrote:
> From: Lloyd Zusman <ljz@xxxxxxxxxx>
> Subject: Encrypting history?
> To: zsh-users@xxxxxxx
> Date: Sunday, 27 December, 2009, 5:55 AM
> I would like my command history to be
> stored in an encrypted file. I
> have read a few messages in this list from 2007 which state
> that there
> isn't a straightforward way to do this within zsh, itself,
> and the use
> of an encrypted file system is suggested.
> However, I think that there might indeed be a way to
> accomplish this.
> Is it possible to do the following?
> Make sure that SAVEHIST is set to 0.
> Then, on login, prompt the user for a password. Remember
> this password
> for the duration of the shell session. Then, use this
> password along
> with a decryption program to read an encrypted history file
> called, for
> example, ~/.ehistory. Put the decrypted contents of this
> file into the
> current shell's history list via the repeated use of the
> "print -s"
> Finally, on logout, pipe the output of "fc -ln 1" through a
> which uses the same password entered at login time to
> encrypt the
> history and write it to the ~/.ehistory file.
> Can any of you see any reason for why this would not work?
> Or alternatively, is there perhaps a better way to do this
> within zsh?
> Thanks in advance.
> Lloyd Zusman
> God bless you.
Get your new Email address!
Grab the Email name you've always wanted before someone else does!
Messages sorted by: