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

Extend SecureHasher interface to provide implementation-specific "full hash output" string representation

    XMLWordPrintableJSON

    Details

      Description

      The current SecureHasher interface only provides methods which output the "pure" hash of the input (in raw, hex, and Base64 encodings). There should be additional methods which provide the output in the "full" representation, including the algorithm indicator, cost parameters, and salt.

      Example: $2a$10$ABCDEFGHIJKLMNOPQRSTUV$<pure hash output>

      It may be sufficient to simply output the full string representation, or a new POJO datatype may be necessary. The benefit of such container should be weighed against the need for algorithm-specific containers in the event the fields are not sufficiently generic.

      The interface should also provide a boolean matches(String input, String hash) method to determine if an existing input value matches a generated ("full") hash output.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: