GitHub user greenman18523 opened a pull request:
https://github.com/apache/commons-lang/pull/332
Add methods allowing masking of Strings
maskStart and maskEnd allow masking the original str by replacing it's
characters with the specified character-mask.
Common usecase is to hide sensitive information from logs, by using it
in toString of classes or in inputs to log calls.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/greenman18523/commons-lang master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/commons-lang/pull/332.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #332
----
commit 902b761637eb2850f5bf223df92718a824282275
Author: George Peponakis <greenman18523@...>
Date: 2018-06-02T14:46:13Z
Add methods allowing masking of Strings
maskStart and maskEnd allow masking the original str by replacing it's
characters with the specified character-mask.
Common usecase is to hide sensitive information from logs, by using it
in toString of classes or in inputs to log calls.
----
---