This verification depends on the HMCSHA256. Computes a Hash-based Message Authentication Code (HMAC) by using the SHA256 hash function. See Details
- A hash(server end) is created with the phone number and then sent to the user as a OTP token.
- The user received the OTP via SMS.
- The user sends back the OTP token, OTP and phone number used in the first http request.
- The server verify the request and returns the response verified or not.
- Please make sure you have installed .NET 6 SDK. If not download here.
https://github.com/sodipto/.net-core-otp-verify-without-database.git
C# 10.0
.NET 6.0