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.1.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.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cryptwood-0.1.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 df35f16f615a46e8e3e7a5e2798ad23adb14653fc69454e7970832c59c10734b
MD5 a9479bab1b8e9ad4c8982da526000785
BLAKE2b-256 47b6e864f391a6c22b9e3f983c6646753f4f94f21d2f9cabc1e0072ea20e7682

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cryptwood-0.1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 16.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c61ed34dfc3261ae690509f98fe4317b3b37c62b197952553beea545a0e9b12b
MD5 9925a69b9d5872a423faf7cf30a6bd3c
BLAKE2b-256 65a06ad69e21550a589ea8ebdb7f7ece4647857e338f8c575d9af9dcad58ced7

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