Skip to content

sodipto/otp-verification-without-database

Repository files navigation

OTP Verify using Cryptography and without any Database

Dependencies

This verification depends on the HMCSHA256. Computes a Hash-based Message Authentication Code (HMAC) by using the SHA256 hash function. See Details

OTP Verification process

  • 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.

Diagram

OTP verification process

Run the project

Step 1: Prerequisites

  • Please make sure you have installed .NET 6 SDK. If not download here.

Step 2: Download or clone the repository

https://github.com/sodipto/.net-core-otp-verify-without-database.git

Version Information

C# 10.0
.NET 6.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages