Code Monkey home page Code Monkey logo

crypto-js-npm's Introduction

This basically tracks the crypto-js project at http://code.google.com/p/crypto-js/ done by [email protected].

I did nothing but add

if (typeof module !== 'undefined' && module.exports) {module.exports = CrytoJS;}

to the end of the package.

My current project only needs part of the whole library, so I created a specific "rollup" to meet my needs.

Just take a look up the build.yml in the original/cypro-js-read-only/builder/build.yml. I added the last line.

crypto-js: [core, enc-base64, enc-utf16, md5, sha1, sha256, hmac, pbkdf2, evpkdf, cipher-core, mode-cfb, mode-ctr, mode-ofb, mode-ecb, aes]

You can add or remove the modules you want, and run

$./make.sh

It should make the crypto-js.js package using the original builder, and move it to ./lib/. But the current npm package ONLY works with my setting. It's quick and dirty... since don't know if anybody has the same interest to use crypto-js to replace node.js's own crypto package. If you do, let me know. I might just maintain it and push it to the npm.

In your node.js package.json, just add

"dependencies":{
    "cryptojs": "git+https://github.com/bianjiang/crypto-js-npm.git"
}

you should ok...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.