{ "id": "78152", "key": "TIMOB-4756", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "12082", "description": "", "name": "Sprint 2011-42", "archived": true, "released": true, "releaseDate": "2011-10-24" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-01T12:11:42.000+0000", "created": "2011-07-22T20:06:36.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_utils", "parity" ], "versions": [], "issuelinks": [ { "id": "12448", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "79337", "key": "TIMOB-5030", "fields": { "summary": "Android: Add support for HMAC SHA256 to mirror recent addition to iOS", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T18:27:36.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Currently the Titanium.Codec module provides several options for encoding and decoding.\r\n\r\nA 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.\r\n\r\nThe 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.\r\n\r\nIt would be nice if the Ti.Codec module was complete with all encryption options.\r\n\r\n", "attachment": [], "flagged": false, "summary": "Titanium.Codec needs to be extended to include the variations of encoding / encryption that are already available on the native platforms", "creator": { "name": "patakijv", "key": "patakijv", "displayName": "John V Pataki", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "patakijv", "key": "patakijv", "displayName": "John V Pataki", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "162193", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "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.\r\n\r\nThe 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.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-08T18:23:58.000+0000", "updated": "2011-08-08T18:23:58.000+0000" }, { "id": "162194", "author": { "name": "patakijv", "key": "patakijv", "displayName": "John V Pataki", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Blain, can you add the regular SHA256 and the HMAC SHA256 functions when you add them?", "updateAuthor": { "name": "patakijv", "key": "patakijv", "displayName": "John V Pataki", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-08T18:37:47.000+0000", "updated": "2011-08-08T18:37:47.000+0000" }, { "id": "162905", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Quick test to test sha256:\r\n{code}\r\n//Sample sha taken from Wikipedia.\r\nvar sha2 = Ti.Utils.sha256(\"The quick brown fox jumps over the lazy dog.\");\r\nTi.API.debug(\"sha2 test => \" +sha2 +\" should be => \" +\r\n\"ef537f25c895bfa782526529a9b63d97aa631564d5d789c2b765448c8635fb6c: \" +\r\n(sha2 == 'ef537f25c895bfa782526529a9b63d97aa631564d5d789c2b765448c8635fb6c'));\r\n{code}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-15T18:34:18.000+0000", "updated": "2011-08-15T18:34:18.000+0000" }, { "id": "414272", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T18:27:36.000+0000", "updated": "2017-03-21T18:27:36.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }