2.0.0 • Published 4 years ago

@projectflame/encryption v2.0.0

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
-
Last release
4 years ago

Security Module that focuses on abstracting security into a single module

Usage

Your key can be anything you want. However for interoperability with other components please keep it to strings.

let {Authentication} = require("@projectflame/encryption)

let auth = new Authentication();

let signupKeys = auth.generate(); auth.add("yourkeyidhere",signupKeys1,signupKeys2); auth.sign("yourkeyidhere","your message here") if(auth.verify("yourkeyidhere","your message here","your signiture here")){ console.log("Verified!") } else { console.log("Messaged Modified or KeyID doesn't exist") } key.eject("yourkeyidhere") key.remove("yourkeyidhere")