NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Encrypting textfiles from shell

I don't know I worked this out a while ago, so the dd may be totally unnecessary. This intent was to used a drop box like server as a backup repository. The dd does seem excessive. I abandon the plan but keep some of the notes. My guess the dd is to just count the data.

On Fri, 16 Dec 2011 08:34:12 +0100, Ian D. Leroux wrote:
On Thu, Dec 15, 2011, at 13:47, steve wrote:
[root@unixfoo-lin23 ~]# tar cvzf - passwd_info.txt | openssl des3 -salt
-k secretkey | dd of=encrypted_passwd_info
20+1 records in
20+1 records out

[root@unixfoo-lin12 ~]# dd if=encrypted_passwd_info |openssl des3 -d -k
secretkey |tar xvzf -
20+1 records in
20+1 records out

Out of curiosity and ignorance, why do you need to go through dd? Would
standard shell redirection not work?  I'm thinking of something like:
  $ tar ... | openssl ... >encrypted_passwd_info

Not critical, just intrigued.

-- IDL

Home | Main Index | Thread Index | Old Index