Socket
Book a DemoInstallSign in
Socket

authme-password-check

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

authme-password-check

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

latest
Source
npmnpm
Version
1.0.8
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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 ❤

Keywords

authme

FAQs

Package last updated on 03 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts