I'm trying to create an SHA-1 hash, and the built-in function is only returning 32 characters instead of the required 40. The first 32 characters are correct, but I need to have the last 8 as well. Any help on this would be greatly appreciated.
NOTE: this bug only exists in the iPhone implementation of Ti.Utils.sha1(). The Android implementation works correctly.
I found the bug in the utilsmodule.m file, and implemented a "quick fix" so my project would work correctly. I created a ticket on lighthouse to address this issue. Note that the solution I implemented is intended as a workaround only and a "proper" fix should be implemented that does not involve adding a separate function just for SHA-1.
If you need the script, my email is on that page.
track in lighthouse as https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/2562-ios-shah1-algorithm-only-returning-32-of-40-chars
this is now fixed in head