Hello, there!
I am trying to use Cryptlex in a C project, but when I try to authenticate the user, it gets LA_E_AUTHENTICATION_FAILED every time, but when I do the same in my Python project the authentication passes.
I have tried to use the vc14 dlls for x86 and x64 and both gave the samer result, I tried to build with gcc and msvc also and same result for both.
Am I missing something for the C part?
Thanks,
Augusto
Dear Augusto,
Thank you for reaching out.
We are unable to replicate this error on our end as long as the credentials are correct. Please ensure that the credentials you are passing in AuthenticateUser()
in C are exactly the same as those used in Python, and verify that there are no leading or trailing spaces.
If the issue persists, please contact us at support@cryptlex.com for further assistance.
Hi @AugustoMartins,
LexActivator expects UTF-16 encoded strings on Windows and UTF-8 encoded strings on non-Windows platforms. Please ensure the C function is called correctly with the L prefix for string literals on Windows.
AuthenticateUser(L"user@example.com", L"password123");
Thank you for the help. I managed to figure out what I was doing wrong.
Thanks,
Augusto
1 Like