zsh-users
 help / color / mirror / code / Atom feed
* Encrypting history?
@ 2009-12-26 22:55 Lloyd Zusman
  2009-12-27  1:47 ` Guido van Steen
  2009-12-28 20:30 ` Richard Hartmann
  0 siblings, 2 replies; 7+ messages in thread
From: Lloyd Zusman @ 2009-12-26 22:55 UTC (permalink / raw)
  To: zsh-users

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"
command.

Finally, on logout, pipe the output of "fc -ln 1" through a program
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
 ljz@asfast.com
 God bless you.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-12-29 19:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-26 22:55 Encrypting history? Lloyd Zusman
2009-12-27  1:47 ` Guido van Steen
2009-12-27 18:56   ` Lloyd Zusman
2009-12-28 23:00     ` Guido van Steen
2009-12-29 19:37       ` Lloyd Zusman
2009-12-28 20:30 ` Richard Hartmann
2009-12-29 19:38   ` Lloyd Zusman

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).