Skip to main content

Python SDK for Phase

Project description

Python SDK for Phase

SDK to integrate Phase in server-side applications running Python

Install

pip install phase-dev

Import

from phase import Phase;

Initialize

Initialize the SDK with your APP_ID and APP_SECRET:

phase = Phase(APP_ID, APP_SECRET)

Usage

Encrypt

ciphertext = phase.encrypt("hello world");

Decrypt

plaintext = phase.decrypt(ciphertext);

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

phase_dev-1.0.0.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

phase_dev-1.0.0-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page