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

    crypto-litepublic

    @version    0.2.0
    @date       2017-02-08
    @stability  2 - Unstable
    

    Standard cryptographic algorithms – Build Coverage

    Lite version of sha1, sha256, hmac, pbkdf2 writen in javascript.

    How to use in browser

    <script src=crypto-lite.js></script>
     
    <script>
    crypto.sha1("secret")
    // e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4
    crypto.sha256("secret")
    // 2bb80d537b1da3e38bd30361aa855686bde0eacd7162fef6a25fe97bf527a25b
    crypto.hmac("sha1", "key", "message")
    // 2088df74d5f2146b48146caf4965377e9d0be3a4
    crypto.hmac("sha256", "key", "message")
    // 6e9ef29b75fffc5b7abae527d58fdadb2fe42e7219011976917343065f58ed4a
    crypto.pbkdf2("password", "salt", 1, 20, "sha1")
    // 0c60c80f961f0e71f3a9b524af6012062fe037a6
    </script> 

    How to use in node.js

    Although it should work in node.js, you should use native api there.

    npm install crypto-lite

    var crypto = require("crypto-lite").crypto
     

    External links

    Licence

    Copyright (c) 2014-2017 Lauri Rooden <lauri@rooden.ee>
    The MIT License

    install

    npm i crypto-lite

    Downloadsweekly downloads

    16,349

    version

    0.2.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar