Re: [Hampshire] Bash pipe creates infinite loop - why?

Top Page

Reply to this message
Author: Bob Dunlop
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Bash pipe creates infinite loop - why?
Hi,

On Thu, Apr 03 at 08:53, Russell Gadd wrote:
...
> Thanks Bob. I'd use a different encryption program if I could find a
> suitable one. I want something which will record encrypted files on a CD in
> a way which allows a different user with the passphrase (and an unencrypted
> help file on the CD) using either Linux or Windows to read it (e.g. an
> executor of my estate). I don't want to use keypairs as this seems to tie
> the data to me/my PC, so this rules out gpg. Any suggestions would be
> welcome.


I'm not sure that Bash combined with bcrypt is going to be that portable ?
Is there a Windows implementation of Bash ? Also bcrypt only lists Win32
and seems to have had portability problems with 64 bit systems in the past
so I don't now how future proof it's Windows implementation is.

Personally I'd encrypt my data with the target users PGP key, or if they
don't have one create one and put the private key, passphrase protected
of course on the same disk. Your protection would only be as good as the
passphrase protection in this case.

As for you intended use I'm not sure that I'd trust electronic media to be
stable for significant lengths of time. Floppys, my stable storage from
only 20 years are are now virtually unsupported, DAT tapes from a decade
ago the same, and CDs only last a few years. HD DVD wouldn't have been a
good choice either :-)

For legal documents and long term storage I use plain text ink on paper
in a sealed envelope in a fire proof box with a copy lodged with my
solicitor. Hard to beat some old methods.


> Thanks for the info. Minor question: I read bcrypt's documentation (man
> page and web site) but I don't think it said anything about return codes.
> Maybe there's some other way of discovering this?


My discovery method was the Star Wars method. Use the source Luke :-)

Source code is often the quickest way to get the definitive answer
especially when documentation is incomplete.
-- 
        Bob Dunlop