[TIMOB-4756] Titanium.Codec needs to be extended to include the variations of encoding / encryption that are already available on the native platforms
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-11-01T12:11:42.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint 2011-42, Release 1.8.0 |
Components | iOS |
Labels | module_utils, parity |
Reporter | John V Pataki |
Assignee | Blain Hamon |
Created | 2011-07-22T20:06:36.000+0000 |
Updated | 2017-03-21T18:27:36.000+0000 |
Description
Currently the Titanium.Codec module provides several options for encoding and decoding.
A current project I am on needs HMAC SHA256 but it is not available and I have to go outside of the framework to get this encryption method.
The iOS SDK's CommonCrypto class ( for HMAC SHA256) already has this and many more encoding/decoding variants available that could be surfaced to enhance this Ti module.
It would be nice if the Ti.Codec module was complete with all encryption options.
There appears to be a bit of confusion here. Codec module is about ensuring that integers, strings, booleans, floats, etc can be serialized and transported over a stream, and come out the right order on the other side regardless of changes of endianness. Codec is NOT about encryption and decryption. The place for encryption appears to be in the utils module, which already has a sha1 function. A sha256 function will be added here, NOT in codec.
Blain, can you add the regular SHA256 and the HMAC SHA256 functions when you add them?
Quick test to test sha256:
Closing ticket as fixed.