Giter Site home page Giter Site logo

gwjjeff / cryptojs Goto Github PK

View Code? Open in Web Editor NEW
326.0 326.0 74.0 205 KB

Following googlecode project crypto-js, provide standard and secure cryptographic algorithms for NodeJS. Support MD5, SHA-1, SHA-256, RC4, Rabbit, AES, DES, PBKDF2, HMAC, OFB, CFB, CTR, CBC, Base64

CoffeeScript 0.56% JavaScript 99.44%

cryptojs's People

Contributors

freewil avatar gwjjeff avatar timoxley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cryptojs's Issues

can not import in react-native

any work around for react-native. I have already done a fork and removed dynamic imports from cryptojs.js, because dynamic does not support by metro bundler.

I am getting undefined in every object now.

Functionality doesn't match CyrptoJS, no documented alternative

The CryptoJS documentation offers this single example of using PBKDF2:

var salt = CryptoJS.lib.WordArray.random(128/8);

var key128Bits = CryptoJS.PBKDF2("Secret Passphrase", salt, { keySize: 128/32 });
var key256Bits = CryptoJS.PBKDF2("Secret Passphrase", salt, { keySize: 256/32 });
var key512Bits = CryptoJS.PBKDF2("Secret Passphrase", salt, { keySize: 512/32 });

var key512Bits1000Iterations = CryptoJS.PBKDF2("Secret Passphrase", salt, { keySize: 512/32, iterations: 1000 });

The first line will not work with this, indicating WordArray is not a method. Is there an alterante method in the module for generating a salt?

Also, when calling the second line with a salt generated manually, I get an invalid array length error.

How can this module be used to generate a hash? You have no examples.

Add a license

What software license are you using? This code is currently public domain until a license is added.

Unexpected String when requiring

package.json
"cryptojs": "^2.5.3",

$ node server.js

/home/dylan/tol-node/tol/server.js:9
var Crypto = (require 'cryptojs').Crypto // Same as the readme?
                      ^^^^^^^^^^
SyntaxError: Unexpected string

Almost seems like I didn't install it, but it's there. I tried npm install just in case dependencies got lost, but all seems well. Running on Ubuntu. Any thoughts?

PS -- Although it failed at the init, I'm trying to do this:

var hash = Crypto.enc.Base64.stringify( Crypto.HmacSHA256(nonce, secret) );

This is how I did it with cryptojs in non-node .. I can do the same, right?

Javascript sample code

Can you give some javascript sample code. I'm sorry I don't understand coffee scripts.

Thanks,
Elgs

Offer to help with maintenance

I'm the maintainer of several CryptoJS packages for meteor, and I'd be happy to bring node-cryptojs up to date and fix the issues raised by others, as well as some I've come across myself, e.g. no support for HMAC* functions.

Where is RC4 support?

On your code description you mention RC4, and it's supported on original crypto-js. Why didn't you add that protocol?

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.