<div dir="ltr"><div>Hi!</div><div><br></div><div>I need to encrypt some data with ads_cbc_128, and I do like:</div><div><br></div><div><div>crypto:aes_cbc_128_encrypt(<<"B3E80545C3C9968096E85A7E0A4A5779">>, <<"96E85A7E0A4A5779">>, <<"id=14&bid=00.004300&clickUrl=<a href="http://duckduckgo.com">http://duckduckgo.com</a>&pid=3101&source=100&search-id=42&search-date=00:00:00">>).</div>
<div>** exception error: bad argument</div><div>     in function  crypto:aes_cbc_crypt/4</div><div>        called as crypto:aes_cbc_crypt(<<"B3E80545C3C9968096E85A7E0A4A5779">>,</div><div>                                       <<"96E85A7E0A4A5779">>,</div>
<div>                                       <<"id=14&bid=00.004300&clickUrl=<a href="http://duckduckgo.com">http://duckduckgo.com</a>&pid=3101&source=100&search-id=42&search-date=00:00:00">>,</div>
<div>                                       true)</div></div><div><br></div><div>seems like the size of data should be the equal the power on 2, and then I do:</div><div><br></div><div><div>crypto:aes_cbc_128_encrypt(<<"B3E80545C3C9968096E85A7E0A4A5779">>, <<"96E85A7E0A4A5779">>, <<"id=14&bid=00.004300&clickUrl=<a href="http://duckduckgo.com">http://duckduckgo.com</a>&pid=3101&source=100&search-id=42&search-date=00:00:00", 0:24/unit:8>>).</div>
<div><<87,187,244,217,66,251,202,118,238,90,226,245,209,213,</div><div>  158,166,203,46,8,30,113,122,172,204,163,50,193,34,243,</div><div>  ...>></div></div><div><br></div><div>Is there any way, don't fill the binary by zeros? How properly I should do this?</div>
<br clear="all"><div><br></div>-- <br><div dir="ltr">Петровский Александр / Alexander Petrovsky,<br><br>Skype: askjuise<br><div>Phone: +7 914 8 820 815<div><br></div></div></div>
</div>