Hi Josh, With your openssl command you're useing DES in CBC mode however in you C code you're useing DES in CFB mode which are completly different.
Don't feel bad about this. This is a quite common mistake which lot of newbie do. I don't want to explain how block cipher work, how to use them (mostly because I'm terrible at explaining thinks) however I would like to reccomend you to read this wiki article https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation which unfortunatelly doesn't explain what block cipher is, however it shows how they should be used. On 11/18/2014 11:51 PM, Josh Marshall wrote: > I tried playing around with simple encryption using DES. I can't > explain why the cli utility and the library interface seem to be > producing different output. > > Detailed on Stackoverflow here: > https://stackoverflow.com/questions/26986381/can-someone-explain-the-difference-in-openssl-cli-and-c-des-output -- Kind regards, b. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org