Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a pure Erlang cryptography library with support for AES?

I need to use AES encryption in my embedded Erlang application, but OpenSSL is unavailable for my target system and so the crypto library from OTP can't be built. I probably could cross-compile OpenSSL as well, but I would prefer a pure Erlang solution to remove another dependency. Does one exist?

like image 474
Alexey Romanov Avatar asked Sep 16 '10 09:09

Alexey Romanov


2 Answers

Looked at this a while ago and found no nice solution other than OpenSSL/crypto. Sorry. Unless someone made a new library recently but I haven't heard about it since then.

It's more likely that someone has already solved the problem of easily installing OpenSSL on your target system. Would focus my energy on that instead.

like image 142
Jon Gretar Avatar answered Nov 11 '22 11:11

Jon Gretar


The crypto module has been OpenSSL dependent for a long time. The pure Erlang version might not be impossible, but it will be very very slow and will not be practical in use.

like image 41
jj1bdx Avatar answered Nov 11 '22 10:11

jj1bdx