Skip to content

p-j/meteor-crypto-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base package for CryptoJS, JavaScript implementations of standard and secure cryptographic algorithms.

More at https://code.google.com/p/crypto-js/

Build Status

Files

  • lib/core.js, with the CryptoJS variable scoped globally

Usage

Out of the box, this package provide Utf8, Hex and Latin1 convertion to WordArray and vice versa :

    var words  = CryptoJS.enc.Latin1.parse('Hello, World!');
    // { words: [ 1214606444, 1865162839, 1869769828, 553648128 ], sigBytes: 13 }
    var latin1 = CryptoJS.enc.Latin1.stringify(words);
    // Hello, World!
    var words = CryptoJS.enc.Hex.parse('48656c6c6f2c20576f726c6421');
    // { words: [ 1214606444, 1865162839, 1869769828, 553648128 ], sigBytes: 13 }
    var hex   = CryptoJS.enc.Hex.stringify(words);
    // 48656c6c6f2c20576f726c6421
    var words = CryptoJS.enc.Utf8.parse('𤭢');
    // { words: [ -257643102 ], sigBytes: 4 }
    var utf8  = CryptoJS.enc.Utf8.stringify(words);
    // 𤭢

On its own, this package won't be very helpful. Add a specific crypto package like :

Other related package :

Credits

Based on Dan Dascalescu's and Tom Coleman's work

About

CryptoJS core package for Meteor

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •