Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-1467

Provide Bcrypt salt generation code

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.5.0
    • Fix Version/s: None
    • Component/s: Core Framework

      Description

      Currently, the ScryptCipherProvider can accept both formatted salt in the mcrypt format $s0$e0101$ABCDEFGHIJKLMNOPQRSTUV or raw salt 0x01 23 45 67 89 AB CD EF FE DC BA 98 76 54 32 10 format and combine that with the instance parameters N, r, and p to return a complete salt. At the same time, due to inconsistency in the Base64 formatting, BcryptCipherProvider can only accept fully formatted salts, and cannot generate a complete salt from raw input.

      Use the custom Base64 encoding as provided in BCrypt.java to resolve this issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alopresto Andy LoPresto
                Reporter:
                alopresto Andy LoPresto
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified