Skip to content

Nezo96/AuthMe-Password-Checking-Package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AuthMeReloaded Password Checking In JS

This package was created for easy password verification in the AuthMeReload plugin from minecraft plugin.

Package was rewriten by me from php to js. There will be updates to this package to change password and delete password.

How to youse package ?

npmjs

First import package

import checkPassword from "authme-password-check"

Than you can use checkPassword function like this:

const pwCheck = checkPassword(password, databasePassword);

Fucntion will return true if passwords match, otherwise false

Testing package

const databasePassword = "$SHA$dc991e87ddb674f1$9c27ce343ccee87be3dca9c1f7aac79abe2f71abd7cb2825006f0a64bafdd361" // test in hashed format (from db)
const password = "test" // password that you want to compare

const pwCheck = checkPassword(password, databasePassword) // save function to pwCheck
console.log(pwCheck) // console log

From Radoslav (Nezo96) with ❤

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published