Code Comments
Programming Forum and web based access to our favorite programming groups.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 interfac e. #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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.