[erlang-questions] Erlang - Java symmetric encryption
Manuel Durán Aguete
Fri Mar 6 08:18:59 CET 2015
You can try something like
2015-03-05 19:45 GMT+01:00 Antonis Kouzoupis <kouzan@REDACTED>:
> I'm trying to build a system where mobile devices (Android) will
> each other encrypted TCP messages and the symmetric key distribution will
> be handled by a server in Erlang. As an Erlang *newbie*, I've been
> confused with
> the key derivation and encryption/decryption.
> What I want is to produce the same key both in mobile (java) and in server
> Supposedly that the salt is the same. I use the erlang-pbkdf2  module
> to generate
> the key in server and bouncy castle in java. Also I use AES in CTR mode in
> sides to encrypt/decrypt, again the IV is known to both sides. So far the
> decrypted ciphertext on server is not the same as the cleartext on mobile.
> Can you give me any hint on how to correctly produce the same key (password
> based) both in Erland and in Java?
>  https://github.com/whitelynx/erlang-pbkdf2
> Thank you for your time,
> Αντώνης Κουζούπης
> Antonis Kouzoupis
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions