# @projectflame/encryption

> Simple Verification and Signiture

Latest version **2.0.0** (published 2020-03-31) · AGPL-3.0-or-later license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @projectflame/encryption
pnpm add @projectflame/encryption
yarn add @projectflame/encryption
bun add @projectflame/encryption
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2020-03-31 |
| First published | 2020-03-31 |
| Weekly downloads | 0 |
| License | AGPL-3.0-or-later |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 22.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | bloated_wake_cake |

## Links

- npm: https://www.npmjs.com/package/@projectflame/encryption
- npm.io page: https://npm.io/package/@projectflame/encryption

## Dependencies (3)

- [autobind](https://npm.io/package/autobind.md) ^1.0.3
- [auto-bind](https://npm.io/package/auto-bind.md) ^4.0.0
- [tweetnacl](https://npm.io/package/tweetnacl.md) ^1.0.3

## Recent versions

- 2.0.0 (latest) — 2020-03-31
- 1.0.0 — 2020-03-31

## README

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",signupKeys[1],signupKeys[2]);
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")

---
_Source: https://npm.io/package/@projectflame/encryption · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
