# dsigner

> Tools to digially sign and verify messages.

Latest version **0.2.0** (published 2016-05-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install dsigner
pnpm add dsigner
yarn add dsigner
bun add dsigner
```

Provides the commands `sign_message`, `verify_message`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2016-05-28 |
| First published | 2014-07-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.1.103 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Naive Roboticist |
| Maintainers | naiveroboticist |
| Keywords | signature, verify, message |

## Links

- npm: https://www.npmjs.com/package/dsigner
- Repository: https://github.com/naiveroboticist/dsigner
- Homepage: https://github.com/naiveroboticist/dsigner#readme
- Issues: https://github.com/naiveroboticist/dsigner/issues
- npm.io page: https://npm.io/package/dsigner

## Recent versions

- 0.2.0 (latest) — 2016-05-28
- 0.1.5 — 2015-01-15
- 0.1.4 — 2014-07-15
- 0.1.3 — 2014-07-15
- 0.1.2 — 2014-07-15
- 0.1.1 — 2014-07-15
- 0.1.0 — 2014-07-15

## README

dsigner
-------

A set of tools to support digtially signing and verifying messages.

## Installation

    npm install -g dsigner 

## Usage

In all cases, the keys to be used are assumed to be located in the 'keyBaseDir' 
directory and are named "<name>_(public|private).pem" (e.g. bob_private.pem).

    var dsigner = require('dsigner')

    var keyBaseDir = "/etc/pki/keys";
    var theMessage = "The message to be signed";

    var signature = dsigner.signMessageFor(keyBaseDir, 'bob', theMessage);

    var valid = dsigner.verifyMessageFor(keyBaseDir, 'bob', theMessage, signature);

Also provided are two executables that allow you to sign/verify messages:

    $ sign_message bob "the message to sign"
      <the signature>

    $ verify_message bob "the message to sign" <the signature>
      true or false

The location of the key for the programs is determined by the value of the KEY_PATH
environment variable.

## Tests

    npm tests

## Contributing

Do the best you can. Fork it and send pull request.

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