Unix Programming - Right way of using setkey(3) and encrypt(3)

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > December 2004 > Right way of using setkey(3) and encrypt(3)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Right way of using setkey(3) and encrypt(3)
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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com