Module: Obfuscator
- Defined in:
- lib/obfuscator-rb.rb,
lib/obfuscator/version.rb,
lib/obfuscator/constants.rb,
lib/obfuscator/multilang.rb,
lib/obfuscator/naturalizer.rb,
lib/obfuscator/internal/rng.rb,
lib/obfuscator/date_obfuscator.rb,
lib/obfuscator/number_obfuscator.rb
Overview
Obfuscator is a text obfuscation library that preserves text structure while replacing content with meaningless but natural-looking words. It supports both English and Russian languages, as well as numbers and dates with format preservation.
The gem provides three main obfuscators:
- Multilang for text obfuscation with multiple language support
- NumberObfuscator for number and mixed content obfuscation
- DateObfuscator for date obfuscation with format preservation
THREAD SAFETY: Individual obfuscator instances are NOT thread-safe. For concurrent operations:
- Create separate instances per thread
- Do not share instances across threads
- Each instance maintains its own RNG state
Error handling is provided through specific error classes:
- Error Base error class for the gem
- InputError Raised for invalid input types
- EncodingError Raised for encoding-related issues
Defined Under Namespace
Modules: Constants, Internal Classes: DateObfuscator, EncodingError, Error, InputError, Multilang, Naturalizer, NumberObfuscator
Constant Summary collapse
- VERSION =
'0.8.1'