Gemalto is now part of the Thales Group, find out more.

You are here

AES Encryption using Salt (RFC2898) function | Thales IoT Developer Community

esiflis

May 31, 2017 - 10:18am, 1033 views

Hello,

I succesfully compiled JSR177Example on EHS6 module.

https://developer.gemalto.com/showcase/jsr177-encryption-and-decryption-...

The problem is that on the server side ( .net implementation ) AES is used, but not with a fixed passphrase. The passphrase is salted using RFC2898 salting algorythm:

Rfc2898DeriveBytes key = new Rfc2898DeriveBytes(secret, saltValueBytes);

byte[] secretKey = key.GetBytes(16);

I cannot find any solution for j2me around this issue.

Does anybody have a solution for this?

Thanks in advance,

Endre