Uploaded image for project: 'DataFu'
  1. DataFu
  2. DATAFU-86

MD5 truncates leading 0s

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Labels:
      None

      Description

      Because it's converted to a BigInteger
      return new BigInteger(1, md5er.digest(val.getBytes())).toString(16);
      any leading 0s are dropped and the resulting MD5 string will not match one generated from another source.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bridiver Brian Johnson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: