bcrypt and multithreading lazarus / 21-General ---------------------------------------------------------------------- engine32 · 2023-04-30 19:07 Hi there,   I want to use some bcrypt functions BCryptCreateHash BCryptHashData BCryptFinishHash BCryptDestroyHash BCryptGenRandom and CryptBinaryToStringA and CryptStringToBinaryA in a multithreading application.   For bcrypt functions, I run BCryptOpenAlgorithmProvider once for each thread and get a handle that will use with the other functions in the respective thread.   Functions CryptBinaryToStringA and CryptStringToBinaryA I use them normally, thinking they are synchronous and does not require any interlocking mechanism. Function arguments are not mixed.   Am I right ? Thank you.