[erlang-questions] aes-128-cbc decryption in erlang
Sat Feb 20 18:33:58 CET 2010
I wrote function which encodes/decodes arbitrary text using specified
Key and IVec:
Key = <<"ABCDEFGHIJKLMNOPQRSTUVWXYZ123456">>,
IVec = <<0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0>>,
Text = <<"gdfgertehgrfcnyeyuyrfghhhhhdtest">>,
Enc = crypto:aes_cbc_128_encrypt(Key, IVec, Text),
Res = crypto:aes_cbc_128_decrypt(Key, IVec, Enc),
io:format("Res: ~s~n", [binary_to_list(Res)]).
Result of function is:
It is really unexpected for me. Can you help me?
On 20 February 2010 05:39, Vance Shipley <vances@REDACTED> wrote:
> For an example of it's use you could look at the milenage
> module from the 3Gdb HSS project:
> On Fri, Feb 19, 2010 at 10:23:00PM +0600, Maxim Treskin wrote:
> } There is function aes_cbc_128_decrypt which takes Key, IVec and
> } encoded data, but how I can get an IVec?
More information about the erlang-questions