[erlang-questions] aes-128-cbc decryption in erlang

Maxim Treskin <>
Fri Feb 19 17:23:00 CET 2010


Hello

What is erlang crypto analog of following comand?

openssl enc -d -aes-128-cbc -pass env:KEY -in file.ssl -out file.txt

There is function aes_cbc_128_decrypt which takes Key, IVec and
encoded data, but how I can get an IVec?
crypto:aes_cbc_ivec returns some IVec, but when it passed to
aes_cbc_128_decrypt I have wrong output of decoded data. May be I
doing something wrong?

-- 
Maxim Treskin


More information about the erlang-questions mailing list