On Mon, Aug 10, 2009, MusicAndy wrote:

> 
> The Key looks completely different in command line to my program.  Why would
> this be the case when i am calling the bytes to key function????  I am using
> a password of "1" therefore in the C++ do I need to do the same..  do I need
> to pad out the password in the C++?
> 
> Help :(
> 

The key from EVP_BytesToKey() is in hex format so you need to do a hex dump of
it.

You don't need to pad out the password a standard null terminated string is
fine.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to