Skip to content

The proposed authentication system combines traditional password-based authentication with an image pattern-based authentication to enhance security.

License

Notifications You must be signed in to change notification settings

nimishjn/hash-generator

Repository files navigation

New Password and Image Pattern User Authentication Schema

image

The proposed authentication system combines traditional password-based authentication with an image pattern-based authentication to enhance security. Users must set a password and create a unique image pattern as their login credentials, divided into 16 grids. The image is not stored on the backend server and is deleted immediately after the authentication process is complete.

👨‍💻 Tech Stack

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

  • npm
npm install npm@latest -g

Installation

  1. Clone the repo
git clone https://github.com/nimishjn/hash-generator.git
  1. Change directory to riddler-frontend-2021
cd hash-generator
  1. Install NPM packages
npm install

Run and build

  • Run in development server
npm run dev
  • Build project
npm run build
  • Run in production server (after completing build)
npm run start

🎓 College project documentation

https://docs.google.com/document/d/1KZGvFCrIQHq-Nlt-rPawrSzBEKFovA-KmBVIKbbCJLc

👾 Hashing Algorithm

Inputs:

  • Text password
  • Chosen image data
  • Index of grids chosen

Steps:

  1. The chosen image is compressed into a 100 px by 100 px size.
  2. The base 64 data of the compressed image is extracted. Eg: data:image/png;base64,iVBORw0KGgoAAAANSU……
  3. The base 64 text is hashed using SHA512 and stored as "image_hash."
  4. The “image_hash” is split into 16 equal elements.
  5. The elements corresponding to the index of grids chosen are concatenated.
  6. The above concatenated text is merged with the text password and hashed using SHA512.
  7. Output the final hash from step 6.

Output:

  • Final hash

💻 Contributors

About

The proposed authentication system combines traditional password-based authentication with an image pattern-based authentication to enhance security.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published