Skip to main content

A tool for encrypting sensitive data

Project description

English badge 简体中文 badge

cryptwood

Encryption tools for protecting private data

install

installed using pip:

python3 -m pip install cryptwood

overview

Through this tool, a python object can be quickly serialized and encrypted, and then stored in with the code directory in the project. At this point, objects that exist in the code can be deleted. In wishing to use this object When you only need to decrypt and deserialize.

In this way, sensitive information (or any information that you don't want others to see) can be avoided from appearing directly in the In the code, there is no need to appear in the project file in plain text.

Objects to be serialized and encrypted can be of any type, including custom classes. If using an object of a custom class, It is necessary to ensure that the class exists when decrypting.

This tool uses the AES256 algorithm to encrypt data symmetrically. During the encryption process, the secret key and initial vector are randomly generated. These files will be stored in~/.cryptUserDataKey.

scenes

 Use this tool to encrypt your information when you need to present projects or hand in assignments to classmates, teachers, etc. (or just for security). Like encrypting your databaseusername,passwd,host

 Use this tool to encrypt a key object when you need to show a project to a client, Make this project only run on your computer, or only after you authorize it.

function

  • cryptwood.dataCrypter.decrypt(object):
    Encrypt the object object and generate an encrypted serialized file in the code directory.cryptUserData, no return.
    Generatedkeyandivfiles are stored in~/.cryptUserDatafolder. The folder name is the code that calls this function 's parent directory location + "key" or "iv".
  • cryptwood.dataCrypter.decrypt():
    Decrypts .cryptUserData and deserializes, returning an object.

TODO

  • Provide a method to save key and iv in remote server using ssh for higher security, and the author Provide users with real-time code authorization to protect author rights.
  • Provides a method to encrypt multiple classes at the same time
  • Provides a method to store key and iv in the database for greater security, and the author Provide users with real-time code authorization to protect author rights.

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

cryptwood-0.1.3.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

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

cryptwood-0.1.3-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file cryptwood-0.1.3.tar.gz.

File metadata

  • Download URL: cryptwood-0.1.3.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for cryptwood-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c8ffb7ca45e36723273715ecb84d36135d3e62c598b73a5209c6b652977d4150
MD5 84829c1b94b27f50c8f025be9fe078e8
BLAKE2b-256 67ac1d7cbd90dc39041885d9c2cd733f211008cdf6809565c18575479ee0ddb1

See more details on using hashes here.

File details

Details for the file cryptwood-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: cryptwood-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for cryptwood-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2d0cdc53291b49c64b59093c59893a71a9ce0a457716ca2f5f84032e47750146
MD5 a4642faa906d01e044370aafcf1c3947
BLAKE2b-256 24fff2de34f17edef5cfe1a402a6ab518a7ac79a8a7d08ffff13ff208030253d

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