Using the functions WinAPIServer::cryptProtectData()
and WinAPServer::cryptUnprotectData()
to store passwords in the database worked fine for a while.
Using this technique on an AOS-Cluster doesn't.
Code stops execution on WinAPIServer::cryptUnprotectData()
without any error-message.
Decrypting only works on the AOS where the Crpyting has been done. Retyping and crypting the password on AOS 2 ( where uncrypting doesn't work at this time ) leads to the fact that AOS 2 can uncrpyt, but AOS 1 not and vice versa. I found some infos regarding problems after changing password of the AOS-User, but the AOS-User is the same on both AOS-instances. So is the password. Are there any further unique IDs or something involved in crypting/uncrypting?
MSDN doesn't give me any helpful information...