Skip to main content

A simple library for security tasks like password hashing, token management, and encryption.

Project description

pysecurity

pysecurity is a simple library for managing security tasks such as password hashing, token management, and data encryption.

Installation

You can install pysecurity using pip:

pip install pysecurity

Usage

from pysecurity import SecurityManager

Initialize SecurityManager

security = SecurityManager(secret_key='your-secret-key')

Password Handling

hashed_password = security.hash_password('mypassword') is_valid = security.verify_password(hashed_password, 'mypassword')

Token Management

token = security.create_token({'user_id': 123}) data = security.validate_token(token)

Encryption/Decryption

encrypted_data = security.encrypt('sensitive data') decrypted_data = security.decrypt(encrypted_data)

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

ShieldedPy-0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

ShieldedPy-0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file ShieldedPy-0.1.tar.gz.

File metadata

  • Download URL: ShieldedPy-0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for ShieldedPy-0.1.tar.gz
Algorithm Hash digest
SHA256 edf3c882359d87a9cc7ef14e22773d7c65afc70427006a8f35a6cebb62d7ff4e
MD5 dce9f90fb1b6359d3475ce7270be4a9c
BLAKE2b-256 aedb05fe1be0540faed0c5f8590153678cd404463ed46f685b3aa0d7e8ff0d0e

See more details on using hashes here.

File details

Details for the file ShieldedPy-0.1-py3-none-any.whl.

File metadata

  • Download URL: ShieldedPy-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for ShieldedPy-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 38347c6574e8809c9761202f424cf63481da7ec3bec25b7be33188c3b7b005f6
MD5 55964d8e56d8cdb5f9449e6f0f156f1b
BLAKE2b-256 f0a1aefb8b254b67d9285c899190f80282035a86aff93c36b3f665c1c0075168

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