[erlang-questions] Erlang - Java symmetric encryption
Thu Mar 5 19:45:45 CET 2015
I'm trying to build a system where mobile devices (Android) will communicate
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 (erlang),
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 both
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?
Thank you for your time,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 801 bytes
Desc: Digital signature
More information about the erlang-questions