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.


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.6.tar.gz (5.8 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.6-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: AnonyMate-0.1.6.tar.gz
  • Upload date:
  • Size: 5.8 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.6.tar.gz
Algorithm Hash digest
SHA256 14f6928bf453e405dab81d9cef4599e8eea264d8c2e7ac2b7e1f97ee1d1777e7
MD5 0ac38ffc16ca230b8e3c914ba6d00232
BLAKE2b-256 7b78b0c770bf3348f0d6edaaab6a2d58a1f2c1029e77970b7dfd3e944b284a4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: AnonyMate-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 6.2 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3a23540fac4f6776df1369ca237db13e4ee9983c284562842365f285502bed9a
MD5 6b8443b0dae9162191f50304fc42ab53
BLAKE2b-256 2be97883d7e2263261ffb20b486976e01c98bde498c77f695a714d94c6c8fe30

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