node-ssha256
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/node-ssha256 package

0.1.1 • Public • Published

node-ssha256

Node Module to create ssha256 hashes

Installation

npm install node-ssha256

Usage

Create a base64 encoded hash

var ssha256 = require('node-ssha256');
message = "hallo"
hash = ssha256.create(message);

Check if message matches hash

var ssha256 = require('node-ssha256');
message = "hallo"
hash = "{SSHA256}WosKbpN2dI/q4/wtG5AW82jFPeFNqXGbSfmd/ooJrRpiYWVh"
if(ssha256.check(message)) {
    // message matched
} else {
    // not matching
}

/node-ssha256/

    Package Sidebar

    Install

    npm i node-ssha256

    Weekly Downloads

    529

    Version

    0.1.1

    License

    none

    Last publish

    Collaborators

    • henne