Skip to main content

Data obfuscator package

Project description

travis ci build state Coverage Status

Introduction

Obfuscator is a Python package used to obfuscate a set of data (e.g. bytes). It provides no encryption! It’s strictly a “security through obscurity” tool, with limited usefulness. You have been warned!

Documentation

Documentation is hosted on readthedocs: obfuscator.readthedocs.org

Install

Download the tarball and install with pip install <package>.

Usage

See the unit tests for more in-depth examples. Here are the basics:

import obfuscator
original_bytes = map(ord, "testing")
_key, obfuscated_bytes = obfuscator.obfuscate_xor(original_bytes, key=0x66)
deobfuscated_bytes = obfuscator.deobfuscate_xor(key=0x66, data=obfuscated_bytes)
assert original_bytes == deobfuscated_bytes

ofile = obfuscator.file.ObfuscatedFile("test.bin")
data = map(ord, "testing")
ofile.write(data, key=123, minimum_length=32)
self.assertEqual(32, os.path.getsize("test.bin"))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

obfuscator-1.1.5.zip (105.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page