Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    vanilla-hashpublic

    Vanilla Hash

    This is a simple straight port of the Vanilla Forums cookie and password hashing. No attempts have been made to optimize the code for node.js. Instead, it uses phpjs to replicate functions (e.g., pack) that do not exist in javascript. It was developed in order to support the vanilla-auth module.

    Travis CI Build Status

    Build Status

    Use

    var vanillaHash = require('vanilla-hash')('salt', 'md5'),
    	hashed = vanillaHash.hash('data');
    if (vanillaHash.checkCookie('Vanilla cookie')) {
    	console.log('Cookie has not been manipulated.');
    }
    

    As-Is policy

    No guarantees are made about this software. It is provided as-is. It is under active development and may or may not be production ready.

    TODO

    Implement password hashing.

    Keywords

    none

    install

    npm i vanilla-hash

    Downloadsweekly downloads

    5

    version

    0.0.1

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar