| Kamal R. Prasad 2004-12-19, 5:48 pm |
| From: cnystrom@gmail.com (cnystrom@gmail.com)
Subject: Re: Right way of using setkey(3) and encrypt(3)
View this article only
Newsgroups: comp.unix.programmer, comp.lang.c
Date: 2004-12-16 04:48:21 PST
YBH123 wrote:
> I need a dual-way encrypt function ( encrypt and decrypt). The unix
> function setkey(3) and encrypt(3) seems the right function to use, but the
> man page of these two functions are really obscure about the parameter
> passing. Could some one tell me the right way of using these two function to
> encrypt and decrypt a character string?
>I do not know.
>The encrypt(3) man page gives this example:
--
Look up the src code for enigma -if you can't do with a commandline interface.
#cat plain.txt | enigma -s "<my passwd>" > secret.txt
#cat secret.txt | enigma -s "<my passwd>" > newfile
#diff newfile and plain.txt
should show that the file is identical.
regards
-kamal
|