CryptPandas 
About
CryptPandas allows you to easily encrypt and decrypt pandas dataframe, regardless of their content.
Installation
You can install with pip as:
pip install cryptpandas
Example
Encrypting and decrypting your pandas dataframe is easy:
import pandas as pd
import cryptpandas as crp
df = pd.DataFrame({'A': [1, 2, 3],
'B': ['one', 'one', 'four']})
crp.to_encrypted(df, password='mypassword123', path='file.crypt')
decrypted_df = crp.read_encrypted(path='file.crypt', password='mypassword123')
print((df == decrypted_df).all().all())
By default CryptPandas uses PBKDF2 with a default salt. This allows anyone with your chosen password or passphrase to decrypt the content of your encrypted dataframe.
For an additional layer of security you can generate your own salt with cryptpandas.make_salt.
For example:
import pandas as pd, cryptpandas as crp
df = pd.DataFrame({'A': [1, 2, 3],
'B': ['one', 'one', 'four']})
my_salt = crp.make_salt()
crp.to_encrypted(df, password='mypassword123', path='file.crypt', salt=my_salt)
decrypted_df = crp.read_encrypted(path='file.crypt', password='mypassword123', salt=my_salt)
Now it is possible to decrypt the encrypted dataframe only if in possession of both the salt and the password.
Requirements
pandascryptographypyarrow
Author
Luca Mingarelli, 2020
Metadata
Release files for CryptPandas 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| CryptPandas-1.0.1.tar.gz | 4.8 kB | Without provenance | Details for CryptPandas-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| CryptPandas-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for CryptPandas-1.0.1-py3-none-any.whl |
Total release size: 10.7 kB
Release files / CryptPandas-1.0.1.tar.gz
| Download URL | CryptPandas-1.0.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
467167954720da9beceefcd953ccb6ed9d0fd25a360aeb647a2907ea67cb1f84
|
|
BLAKE2b-256 checksum How to use checksums |
3945d85286e5c3a068ebb4ac93615e23aee20ffaa9ae17c0a0b066b182ce5993
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Release files / CryptPandas-1.0.1-py3-none-any.whl
| Download URL | CryptPandas-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78086739bcc7c92a975d8227eac730e6243e346900a04e547764c43745c6397a
|
|
BLAKE2b-256 checksum How to use checksums |
60ebb5440cdf5ae086e11d3478bf4ef47ee026ae1cfce5472bbf52853c0a11d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Security for CryptPandas 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.