Convert C++ std::string to UTF-16-LE encoded string
问题 I've been searching for hours today and just can't find anything that works out for me. The one I've just had a look at, with no luck, is " How to convert UTF-8 encoded std::string to UTF-16 std::string ". My question is, with a brief explanation: I want to make a valid NTLM hash in std C++, and I'm using OpenSSL's library to create the hash using its MD4 routines. I know how to do that, so does anyone know how to convert the std::string into a UTF-16 LE encoded string which I can pass to the