https://github.com/robtimus/obfuscation-http
Provides functionality for obfuscating HTTP requests and responses
https://github.com/robtimus/obfuscation-http
http java obfuscation
Last synced: 4 months ago
JSON representation
Provides functionality for obfuscating HTTP requests and responses
- Host: GitHub
- URL: https://github.com/robtimus/obfuscation-http
- Owner: robtimus
- License: apache-2.0
- Created: 2020-05-03T12:05:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-20T12:52:53.000Z (over 1 year ago)
- Last Synced: 2024-11-17T06:41:45.055Z (6 months ago)
- Topics: http, java, obfuscation
- Language: Java
- Homepage: https://robtimus.github.io/obfuscation-http
- Size: 447 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# obfuscation-http
[](https://search.maven.org/artifact/com.github.robtimus/obfuscation-http)
[](https://github.com/robtimus/obfuscation-http/actions/workflows/build.yml)
[](https://sonarcloud.io/summary/overall?id=com.github.robtimus%3Aobfuscation-http)
[](https://sonarcloud.io/summary/overall?id=com.github.robtimus%3Aobfuscation-http)
[](https://snyk.io/test/github/robtimus/obfuscation-http)Provides functionality for obfuscating HTTP requests and responses. This can be useful for logging such requests/responses, where sensitive content should not be logged as-is.
## Obfuscating request parameters
To create a request parameter obfuscator, simply create a builder, add parameters to it, and let it build the final obfuscator:
RequestParameterObfuscator obfuscator = RequestParameterObfuscator.builder()
.withParameter("password", Obfuscator.fixedLength(3))
.build();## Obfuscating headers
To create a header obfuscator, simply create a builder, add headers to it, and let it build the final obfuscator:
HeaderObfuscator obfuscator = HeaderObfuscator.builder()
.withHeader("authorization", Obfuscator.fixedLength(3))
.build();