North Pittsburgh Meatpackers

    s256

    1.0.0 • Public • Published

    Generate a SHA-256 hash from a string in Node.js

    Generates a lowercase-hex encoded hash from any string in Node.js.

    For those who are tired of typing crypto.createHash('sha256').update(str).digest('hex');.

    Usage

    const sha256 = require('s256');
     
    console.log(sha256('secret_password_123'));

    Install

    npm i s256

    DownloadsWeekly Downloads

    140

    Version

    1.0.0

    License

    Unlicense

    Unpacked Size

    1.01 kB

    Total Files

    3

    Last publish

    Collaborators

    • anton-ivanov