Skip to content

The username and password hashing script is a simple Node.js program that prompts the user to enter their username and password, generates a random salt, and uses the Argon2 algorithm to hash the password. The username, salt, and hashed password are then saved to a file in JSON format.

License

Notifications You must be signed in to change notification settings

hamarshehmhmd/PassSaves

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Username and Password Hashing

This is a simple Node.js script that prompts the user for their username and password, generates a random salt, and hashes the password using the Argon2 algorithm. The username, salt, and hashed password are then saved to a file in JSON format.

Prerequisites

  • Node.js v10 or higher
  • NPM (Node Package Manager)

Installation

  1. Clone the repository to your local machine.
  2. Install the required dependencies by running npm install in the command line.

Usage

  1. Navigate to the project directory in the command line.
  2. Run node index.js.
  3. Enter your username and password when prompted.
  4. The program will generate a random salt and use the Argon2 algorithm to hash the password.
  5. The username, salt, and hashed password will be saved to a file called credentials.txt.

Files

  • index.js: Contains the code for prompting the user for their username and password, generating a random salt, hashing the password, and saving the data to a file.
  • package.json: Contains information about the project and its dependencies.
  • README.md: This file.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

About

The username and password hashing script is a simple Node.js program that prompts the user to enter their username and password, generates a random salt, and uses the Argon2 algorithm to hash the password. The username, salt, and hashed password are then saved to a file in JSON format.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published