cuing / crypto-js

Automatically exported from code.google.com/p/crypto-js
0 stars 0 forks source link

Add Hex formatter to CryptoJS.lib.Cipher #61

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am using the AES cipher but I need a Hex string to my script.

I created a formatter for this, see the patch attached.

Original issue reported on code.google.com by kakao...@gmail.com on 14 Dec 2012 at 11:11

Attachments:

GoogleCodeExporter commented 8 years ago
This can be used like:
var encodedData = CryptoJS.AES.encrypt(data, key, { iv: iv, format: 
CryptoJS.format.Hex });

The encodedData returned is the Hex string of the encrypted data.

Original comment by kakao...@gmail.com on 14 Dec 2012 at 11:12

GoogleCodeExporter commented 8 years ago
Thanks. This will likely make it into the next release.

Original comment by Jeff.Mott.OR on 3 Jan 2013 at 7:58

GoogleCodeExporter commented 8 years ago

Original comment by Jeff.Mott.OR on 3 Jan 2013 at 7:58

GoogleCodeExporter commented 8 years ago
Hex formatter is included in latest release as a separate component.

Original comment by Jeff.Mott.OR on 7 Jan 2013 at 1:45