Re: Security of piping unencrypted keyfile through named pipe

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

 



Jari Ruusu wrote:
> # cat ./encrypt65keys
> #!/bin/sh
> if [ x$1 = x ] ; then
>     exit 1
> fi
> head -c 2925 /dev/random | uuencode -m - | head -n 65 | tail -n 64 | gpg -c -a --yes -o $1
                                                     ^^           ^^
I mean...                                            66           65

I copied your example which was wrong. :)

> # chmod a+rx ./encrypt65keys
> # KEYFILE=test1.gpg
> # xterm -geometry 30x1 -T "Password" -e ./encrypt65keys ${KEYFILE}

-- 
Jari Ruusu  1024R/3A220F51 5B 4B F9 BB D3 3F 52 E9  DB 1D EB E3 24 0E A9 DD

-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux