[TIMOB-1168] iPhone: add native SHA1 utility
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:55:24.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.4.0 |
| Components | iOS |
| Labels | ios, iphone, sha1 |
| Reporter | Jeff Haynie |
| Assignee | Jeff Haynie |
| Created | 2011-04-15T02:45:41.000+0000 |
| Updated | 2011-04-17T01:55:24.000+0000 |
Description
add SHA1 native code in Utils module.
(from [1d569f43c17aec2f4e1455135a9d486210ff02dc]) [#1169 state:resolved] added SHA1 to Utils for Android [#1168 state:resolved] added SHA1 to Utils for iPhone [#1111 state:resolved] Android Utils base64 should return blob http://github.com/appcelerator/titanium_mobile/commit/1d569f43c17aec2f4e1455135a9d486210ff02dc"> http://github.com/appcelerator/titanium_mobile/commit/1d569f43c17ae...
The SHA1 implementation for iPhone truncates the hex output at 32 chars instead of 40 chars, as discussed at http://developer.appcelerator.com/question/55611/sha1-algorithm-not-working-missing-last-8-characters"> http://developer.appcelerator.com/question/55611/sha1-algorithm-not...
There's also an open but unassigned ticket for this at https://appcelerator.lighthouseapp.com/projects/32238/tickets/1789-iphone-implementation-of-sha-1-algorithm-does-not-work-correctly"> https://appcelerator.lighthouseapp.com/projects/32238/tickets/1789-....