Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-1789

iPhone implementation of SHA-1 algorithm does not work correctly

    Details

      Description

      {html}<div><p>The iPhone implementation of the sha-1 algorithm does not work
      correctly. It only returns the first 32 characters of the hash
      instead of the full 40. Perusing the code, I found that the error
      lies in the convertToHex function in UtilsModule.m. This function
      is only designed to return the first 32 characters, and currently
      ignores anything else. As a temporary work-around, I added a
      convertToHex40 function which does the exact same thing, only it is
      configured for 40 characters. While I realize this is not an ideal
      fix, it solves my problem temporarily.</p>
      <p>On a side note, the Android implementation of this function
      works great.</p>
      <p>Thanks for your help in advance.</p>
      <p>Sincerely,<br>
      Jesse Domack</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              rseagraves Reggie Seagraves
              Reporter:
              jessedomack Jesse Domack
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-1599
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration