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

SRAMP-380 Passwords in clear text when running in Fuse 6.1 #96

Merged
merged 1 commit into from Jul 31, 2014

Conversation

dvirgiln
Copy link
Contributor

//Add password bytes to digest
md.update(password.getBytes());
//Get the hash's bytes
byte[] bytes = md.digest();

//Get complete hashed password in hex format
generatedPassword = new String(hexEncode(bytes));
generatedPassword = new String(Base64.encodeBase64(bytes));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're going to include commons-codec as a dependency, then I think you should just replace the whole block of code above with this:

generatedPassword = DigestUtils.sha256Hex(password);

EricWittmann added a commit that referenced this pull request Jul 31, 2014
SRAMP-380 Passwords in clear text when running in Fuse 6.1
@EricWittmann EricWittmann merged commit 675b421 into Governance:master Jul 31, 2014
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

2 participants