Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

com.github.robtimus:obfuscation-core

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.github.robtimus:obfuscation-core

Provides functionality for obfuscating text

  • 1.5
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

obfuscation-core

Maven Central Build Status Quality Gate Status Coverage Known Vulnerabilities

Provides functionality for obfuscating text. This can be useful for logging information that contains sensitive information.

Besides providing a framework that can be extended to provide simple or complex obfuscators, this library comes with a small set of predefined obfuscators. Most can be found through factory methods on class Obfuscator. See Examples for more information.

Streaming obfuscation

An Obfuscator has method streamTo which takes a StringBuilder, Writer or other Appendable, and returns a Writer that will obfuscate the written text automatically.

Preventing leaking string representations

The following methods of Obfuscator can be used to help prevent accidentally leaking string representations of objects, for instance by logging them:

  • obfuscateList, obfuscateSet and obfuscateCollection create List, Set and Collection decorators respectively that obfuscate separate elements when calling toString().
  • obfuscateMap creates a Map decorator that obfuscates separate values (but not keys) when calling toString().
  • obfuscateObject creates a wrapper around an existing object that obfuscates the object when calling toString().

Obfuscating complex structures

Besides obfuscating simple text, it's possible to obfuscate complex structures using the following classes and libraries:

Writing custom obfucators

Package com.github.robtimus.obfuscation.support provides several classes that can be used to create custom obfuscators.

Extensions

FAQs

Package last updated on 01 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc