securitybites/crypto-js

Add Hex formatter to CryptoJS.lib.Cipher

GoogleCodeExporter opened this issue · 4 comments

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:

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

Thanks. This will likely make it into the next release.

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

  • Changed state: Accepted

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

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect
Hex formatter is included in latest release as a separate component.

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

  • Changed state: Fixed