Re: "Clean" way of getting a key over to aespipe

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

 



Jari Ruusu wrote:
Matthias Schniedermeyer wrote:

aespipe -p3 -d < <data> 3< <key>
didn't seam to work for me. :-(


aespipe -d -e AES128 -p3 3<cleartext-65-line-key-file <inputFile >outputFile
                     ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

aespipe -d -e AES128 -p3 3< <( ./cleartext-65-line-key-outputting-script ) <inputFile >outputFile
                     ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

aespipe -d -e AES128 -K foo.gpg -p3 3<cleartext-1-line-gpg-passphrase-file <inputFile >outputFile
                                ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

aespipe -d -e AES128 -K foo.gpg -p3 3< <( ./cleartext-1-line-gpg-passphrase-outputting-script ) <inputFile >outputFile
                                ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Thanks for your help in enlighten me to a bid more of "shell-magic". :-)


Seems for the "simple" 3< cases i just used the wrong order.

The "process substitution"-cases gave me a headache at first (Just got syntax-errors).

They don't seem work from a Shell-Script with "#!/bin/sh" as shebang. But after trying them on the commandline and then with "#!/bin/bash" as shebang they work like charm. :-))

"ls -la /bin/sh" shows a symlink to bash. Guess there are some compatibility things that can throw with stones. ;-)


Bis denn

--
Real Programmers consider "what you see is what you get" to be just as
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated,
cryptic, powerful, unforgiving, dangerous.


-
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