A tool for encrypting sensitive data
Project description
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.cryptUserDataand deserializes, returning an object.
TODO
- Provide a method to save
keyandivin remote server usingsshfor 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
keyandivin 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cryptwood-0.1.4.tar.gz.
File metadata
- Download URL: cryptwood-0.1.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bf7b763f0cdd8e5974574252bb83389c203466dcf8e5996cf07003db582df38
|
|
| MD5 |
aa299670f6da0c8de1ff6db909754251
|
|
| BLAKE2b-256 |
8b46ead06b534ce2f07e3999755bcb16fa0707c4c773efa3bd1c1a6d33f83092
|
File details
Details for the file cryptwood-0.1.4-py3-none-any.whl.
File metadata
- Download URL: cryptwood-0.1.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4c2716b9c3248ad954430c5db54eac57c86244f75c2a3b9155ed191f551ffab
|
|
| MD5 |
af69f2128255ccec42e76ddff2156f5d
|
|
| BLAKE2b-256 |
92d4349e11514cc6c4a3a67398580d4652b43547002efa6a192a46e514518eca
|