Sample usage

Jonathan Hayward -- http://JonathansCorner.com jshayward@pobox.com
Mon Aug 27 18:13:01 2001


--------------9DDA9714B74EB62BBE926992
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I've got a Tcl extension working, and I'm building a simple Tk demo.  I
was wondering if someone on the list could furnish sample batch-mode
syntax to do the following in batch mode (no stdin or stdout, all IO
either in files or arguments/exit codes):

Sign the file foo with the private key contained in file bar and
passphrase blorg.
Verify that the signature to foo was made by bar's public key, rod.
Encrypt foo with rod.
Decrypt the encrypted version of foo with bar/blorg.

What are the command-line arguments to do these in batch mode? The man
page doesn't seem to document a way to specify passphrase on the command
line; if it's not in the program (so people won't see a passphrase via
ps or w), what's involved in putting such an option in? (It would be
safer here, in that the arguments to a Tcl extension are not in public
view.)

--
Jonathan Hayward
jshayward@pobox.com
http://JonathansCorner.com
(A four dimensional maze, stories, essays, artwork, and other things...)



--------------9DDA9714B74EB62BBE926992
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I've got a Tcl extension working, and I'm building a simple Tk demo.&nbsp;
I was wondering if someone on the list could furnish sample batch-mode
syntax to do the following in batch mode (no stdin or stdout, all IO either
in files or arguments/exit codes):
<p>Sign the file foo with the private key contained in file bar and passphrase
blorg.
<br>Verify that the signature to foo was made by bar's public key, rod.
<br>Encrypt foo with rod.
<br>Decrypt the encrypted version of foo with bar/blorg.
<p>What are the command-line arguments to do these in batch mode? The man
page doesn't seem to document a way to specify passphrase on the command
line; if it's not in the program (so people won't see a passphrase via
ps or w), what's involved in putting such an option in? (It would be safer
here, in that the arguments to a Tcl extension are not in public view.)
<pre>--&nbsp;
Jonathan Hayward
jshayward@pobox.com
<A HREF="http://JonathansCorner.com">http://JonathansCorner.com</A>
(A four dimensional maze, stories, essays, artwork, and other things...)</pre>
&nbsp;</html>

--------------9DDA9714B74EB62BBE926992--