Skip to main content

A comprehensive toolkit for data anonymization, masking, and encryption.

Project description

AnonyMate

AnonyMate is a Python toolkit that provides a powerful suite of tools for data anonymization, masking, encryption, and fake data generation. Designed for developers working with sensitive information, AnonyMate helps ensure compliance with data privacy regulations (e.g., GDPR, HIPAA) while simplifying the anonymization process for testing, analysis, and data sharing.


Table of Contents


Key Features

  • Data Masking: Mask sensitive data (e.g., names, emails, IDs) with custom characters, ensuring data cannot be directly identified.
  • Data Hashing: One-way hashing for sensitive data using SHA-256, providing a non-reversible transformation to securely store confidential data.
  • Encryption & Decryption: Securely encrypt and decrypt sensitive data using symmetric encryption, allowing data to be accessed only by authorized parties.
  • Synthetic Data Generation: Generate realistic fake data (e.g., names, emails, addresses) for testing and development without exposing actual sensitive data.
  • Partial Masking and Validation: Support for partial masking (e.g., "123-***-789") for specific use cases and simple validation tools for email formats.
  • Compliance-Friendly: Assists organizations in meeting data privacy and security requirements, making it suitable for various industries, including healthcare, finance, and e-commerce.

Installation

Install AnonyMate with pip:

pip install AnonyMate

Quick Start

Here’s how to get started using AnonyMate for basic anonymization, encryption, and fake data generation.

Basic Setup

from anonymate.anonymizer import Anonymizer
from anonymate.faker_util import generate_fake_name, generate_fake_email, generate_fake_address

# Initialize Anonymizer
anonymizer = Anonymizer()

# Mask, hash, encrypt, and decrypt data
masked = anonymizer.mask_text("SensitiveData")
hashed = anonymizer.hash_text("SensitiveData")
encrypted = anonymizer.encrypt_text("SensitiveData")
decrypted = anonymizer.decrypt_text(encrypted)

# Generate fake data
fake_name = generate_fake_name()
fake_email = generate_fake_email()
fake_address = generate_fake_address()

# Display results
print("Masked:", masked)
print("Hashed:", hashed)
print("Encrypted:", encrypted)
print("Decrypted:", decrypted)
print("Fake Name:", fake_name)
print("Fake Email:", fake_email)
print("Fake Address:", fake_address)

Example Use Cases

  1. Healthcare Applications: Mask and encrypt patient information to ensure HIPAA compliance and secure sharing with researchers.
  2. Financial Services: Anonymize and hash transaction data to meet GDPR and other privacy regulations.
  3. Data Science and Machine Learning: Use synthetic data for model training, ensuring no real data is exposed during testing and validation.
  4. Customer Support Systems: Anonymize customer data (e.g., names, phone numbers) before sharing with support teams or contractors.
  5. Social Media Analytics: Mask user data before running analysis on social media usage to ensure compliance with data privacy standards.

License

MIT License

This project is licensed under the MIT License, allowing free use, modification, and distribution with attribution.

Contributing

Contributions are welcome! Please open issues or submit pull requests for bug fixes, improvements, or new features.

To contribute:

  • Fork the repository.
  • Create a new branch (git checkout -b feature-branch).
  • Make your changes and commit (git commit -m 'Add new feature').
  • Push to the branch (git push origin feature-branch).
  • Open a Pull Request.

Thank you for your interest in improving AnonyMate!

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

AnonyMate-0.1.5.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

AnonyMate-0.1.5-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file AnonyMate-0.1.5.tar.gz.

File metadata

  • Download URL: AnonyMate-0.1.5.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for AnonyMate-0.1.5.tar.gz
Algorithm Hash digest
SHA256 987e5da91966d1c66b0c6124b193d3a4d7edf25120e31166e95dd6a33affe49f
MD5 ef563f246c2bb969f0c654ced3eb8f79
BLAKE2b-256 d93e4431398b56e247f05330098aaf1ebac4af31d21947a2c43b36cc0d73cc5b

See more details on using hashes here.

File details

Details for the file AnonyMate-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: AnonyMate-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for AnonyMate-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a472e044e67665ffbdcf758ae52d8651da5d387b9757cd08cc352ce2cdcb5557
MD5 6a5ff0bdcb808bc99670ee8e81ec2762
BLAKE2b-256 4fccac29bbc3facbeb32b31e0991604eec58d6da232c3d371a6e51d70488ac49

See more details on using hashes here.

Supported by

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