Python SDK for Phase
Project description
Python SDK for Phase
SDK to integrate Phase in server-side applications running Python
Install
pip install phase-sdk
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-0.0.3.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for phase_dev-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2fad3216b7e69f2ac476bd06e7ccafd4f10ab37cf06919d077ac88c0d50d3ed |
|
MD5 | f8701ce8630638605938334f5f07e721 |
|
BLAKE2b-256 | 76731ebc03ae15cba4ad4a6b9a7fa5a2998f0151551f81bbb244bd755439eb2d |