[Question] How did you know to convert top using sha(). before sending to validatemobileotp api ?
Closed this issue · 1 comments
sumit7 commented
@ pallupz How did you know to convert top using sha(). before sending to validatemobileotp api ?
I am referring to data = {"otp": sha256(str(OTP).encode("utf-8")).hexdigest(), "txnId": txnId}
pallupz commented
I did a test run and looked at the OTP I entered vs what was being sent to the server in request. From there, it was just trial and error. I couldn't find any encryption functions so I just tried a bunch of things until OTP and the value being passed matched. Not an elegant method but it worked! :)