Skip to content
This repository was archived by the owner on Oct 30, 2020. It is now read-only.

Improved DB password masking to mask special characters (non alpha-numeric) as well#9

Open
zsimic wants to merge 14 commits intoLinkedInAttic:masterfrom
zsimic:master
Open

Improved DB password masking to mask special characters (non alpha-numeric) as well#9
zsimic wants to merge 14 commits intoLinkedInAttic:masterfrom
zsimic:master

Conversation

@zsimic
Copy link
Contributor

@zsimic zsimic commented Jul 2, 2012

We found that only alphanumeric characters in passwords were masked, this fix makes sure that special characters (non alphanumeric) get masked as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

I know this is just a test, but you are opening an input stream without ever closing it.

Why not simply use a String? Then you would not have this issue (although it is still a good practice to always close what you open).

new BytArrayInputStream(s.getBytes("UTF-8")) to get an input stream from a string...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Very good point, correcting this test class and updating the pull request

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants