2015-04-01 15:21 GMT+02:00 Nate Smith <[email protected]>: > I successfully encrypted the field using AES 128, and I used the 16-bit key > at the top of my LSC.key file. > However, I don't see how LSC could decrypt it without the iv from the PHP > based encryption.
Please reply to all to keep mailing list in the loop. > > Does that make sense? > > 1. I generated an AES 128 .key file and uploaded it as LSC.key. > 2. I built an encryption algorithm in PHP with the 16-bit key at the top of > lsc.key as the key for the encryption. (so they should be using same primary > key) > 2a. PHP auto generates an iv (different each time). > 3. Encrypted password is passed to MySQL. > > 4. Now, I WANT lsc to decrypt it, but there's no way I can think of that it > would be able to read the iv that was created in the password encryption > process. Nor do I even know where this would go in the lsc.key file? > > Pretty much all of my confusion comes on the LSC/decryption side of things. If you look to the decrypt method of PHP library, you can see that iv is not needed to retrieve the value. So this should work by using SecurityUtils.decrypt method in LSC. Clément. _______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

