Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for salting #1040

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Added support for salting #1040

wants to merge 4 commits into from

Conversation

AW3i
Copy link
Contributor

@AW3i AW3i commented Oct 19, 2016

I've added support for hash salting and support for more hashing algorithms.

There's a new parameter called saltQuery which is defined in context.xml and expects
a DQL Query string to get the salt from a specified table.

The hashAlgorithm in context.xml is now being respected and can be given the following values:

  • md5
  • sha1
  • sha256
  • sha512
  • PASSWORD_BCRYPT
  • PASSWORD_DEFAULT

if none of the above is given the password hashing mechanism just returns the password with no hashing.

- Also added more hashing algorithms which can be used
- Salt is retrieved by the saltQuery parameter in context.xml
  which should include a DQL query
@appserver-ci
Copy link
Contributor

Can one of the admins verify this patch?

1 similar comment
@appserver-ci
Copy link
Contributor

Can one of the admins verify this patch?

@wick-ed
Copy link
Member

wick-ed commented Oct 19, 2016

Nice, but this might be a good opportunity to drop MD5 support alltogether :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants