FILE *fp;
sprintf(buf,"echo %s | openssl aes-256-cbc -salt -a -e
-pass pass:%s",password,passphrase);
fp = popen(buf);
fgets(fd...) for the output

HTH 
--- Kyle Hamilton <[EMAIL PROTECTED]> wrote:

> If you have the OpenSSL command on your system, you
> have the libraries
> on your system.  However, for your purposes, you
> need the source code
> to openssl, which you can get from openssl.org.  You
> can look at how
> the aes-256-cbc command is implemented, and what
> functions need to be
> called, and in what order.
> 
> (Unfortunately, I do not have the information
> myself.  But you should
> be able to locate it with the pointers above.)
> 
> -Kyle H
> 
> On 4/26/06, be_tnt (sent by Nabble.com)
> <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > I have to use the following command in a C
> program:
> >
> > echo $passwd | openssl aes-256-cbc -salt -a -e
> -pass pass:$myPassphrase
> >
> > But as I am completely new with openssl, I would
> need help to understand how
> > I can do it. I saw on the internet that some
> openssl libraries are available
> > but did not find how to use it :o(
> > --
> > View this message in context:
>
http://www.nabble.com/New-openssl-user-needs-help-%3Ao%29-t1510692.html#a4097948
> > Sent from the OpenSSL - Dev forum at Nabble.com.
> >
> >
>
______________________________________________________________________
> > OpenSSL Project                                
> http://www.openssl.org
> > Development Mailing List                      
> [email protected]
> > Automated List Manager                          
> [EMAIL PROTECTED]
> >
>
______________________________________________________________________
> OpenSSL Project                                
> http://www.openssl.org
> Development Mailing List                      
> [email protected]
> Automated List Manager                          
> [EMAIL PROTECTED]
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to