We use CNG instead of libsodium and the problem was that one of the hash functions was not called properly (misaligned structs or parameters?) and thus returned an empty string. The library then trimmed the string from the database to the same length and both strings now matches, as both had length 0.

In the 32bit bit version everything works fine (as before) and all the compiler warnings have disappeared (finally ).

With the 64bit version either the studio freezes/crashed or the WebApp immediately stops after running it. But I'm still not sure if the security library is at fault or one of our other libraries, or wether this is a problem with 20.1 (the last time we tried to run it in 64bit was with 20.0)