Use this Python package to encrypt your data for use with the decrypt field plug-in. It can even encrypt data in a CSV file for you.
This package can also decrypt data, such as data encrypted using the encrypt field plug-in.
For a full account of the above plug-ins working with this package, see this installable SurveyCTO workflow. It demonstrates how sensitive data like personally identifying information (PII) belonging to refugees can be securely managed in server datasets while still being available inside forms to help program staff positively identify beneficiaries.
New to SurveyCTO? Check out this video!
- Encrypt data using AES-CBC encryption.
- Provide tools and information to easily decrypt data using a different platform.
- Encrypt a CSV file for use as pre-load data with SurveyCTO, including the decrypt field plug-in.
To install the Python package, run this command:
pip install git+https://github.com/surveycto/scto-encryption.git
Important: You may have to replace pip
with pip3
, depending on how Python is installed on your system.
Check out these resources to learn how to use the package:
- Quick start guide: For Python beginners.
- Module: functions: Basic functions for Python novices, including generate encryption keys, encrypt CSV files, and decrypt CSV files.
- Module: crypto: Classes used for easy encryption and decryption, including tools to later decrypt your data using other packages on other platforms.
- Module: csv_encrypt: Functions to encrypt data in a CSV file that can be used for pre-loading in SurveyCTO.
- How to generate a QR code with your encryption key: Generate a QR code to make it easier to distribute your encryption key.
- Use with SurveyCTO: Tips on using this package to assist you with SurveyCTO.
This package uses the cryptography Python package to encrypt your data, specifically the Fernet class.