A minimalist bundle of cryptoJS method for 256 bits keys.
npm install ts.cryptojs256This module for the Appcelerator Titanium Alloy MVC framework brings
CryptoJS 256 methods into Titanium.
Download this repository and install it
* In your application's tiapp.xml file, add the module to the modules section:
``xml`
* Copy the ts.cryptojs256-commonjs-x.x.x.zip bundle into your root app directory.
Or use your favorite package manager
- gitTio: gittio install ts.cryptojs256
`javascript
var CryptoJS = require('ts.cryptojs256');
var encodedString = CryptoJS.enc.base64.stringify("The Smiths");
var hmacHash = CryptoJS.HmacSHA256("The Smiths", "Secret Key");
// Please refer to the original documentation of CryptoJS for more information and examples.
`
##### CryptoJS.enc.Base64
> A Base64 encoder object
##### CryptoJS.enc.Base64.stringify(str) :: {String}
> Encode a string using Base64 encoder
>
> - {String} str The given string to encode{String}
> - return The encoded string
##### CryptoJS.enc.Base64.parse(str) :: {String}
> Decode an Base64 encoded string
>
> - {String} str The given string to decode{String}
> - return The decoded string
##### CryptoJS.enc.Utf8
> A Utf8 encoder object
##### CryptoJS.enc.Utf8.stringify(str) :: {String}
> Encode a string using Utf8 encoder
>
> - {String} str The given string to encode{String}
> - return The encoded string
##### CryptoJS.enc.Utf8.parse(str) :: {String}
> Decode an Utf8 encoded string
>
> - {String} str The given string to decode{String}
> - return The decoded string
##### CryptoJS.enc.Latin1
> A Latin1 encoder object
##### CryptoJS.enc.Latin1.stringify(str) :: {String}
> Encode a string using Latin1 encoder
>
> - {String} str The given string to encode{String}
> - return The encoded string
##### CryptoJS.enc.Latin1.parse(str) :: {String}
> Decode an Latin1 encoded string
>
> - {String} str The given string to decode{String}
> - return The decoded string
##### CryptoJS.SHA256(str) :: {String}
> Crypt a string using a SHA256 algorithm
>
> - {String} str The given string to crypt{String}
> - return The crypted string
##### CryptoJS.HmacSHA256(str, secretKey) :: {String}
> Crypt a string using a Hmac256 algorithm and a secret key
>
> - {String} str The given string to crypt{String}
> - secretKey The secret key used for encryption{String}` The crypted string
> - return

Appcelerator, Appcelerator Titanium and associated marks and logos are trademarks of Appcelerator, Inc.
Titanium is Copyright (c) 2008-2015 by Appcelerator, Inc. All Rights Reserved.
Titanium is licensed under the Apache Public License (Version 2).