Python Wrapper for Virtru SDK
Project description
Virtru TDF3 SDK
License
The following files are covered under the MIT license:
- virtru_sample.py
- init.py
- setup.py
The following binaries / minified libraries are subject to use under the "Virtru Data Protection Subscription Agreement" found here: https://www.virtru.com/terms-of-service/
- virtru_tdf3_python.pyd
- virtru_tdf3_python.so
All 3rd party packages used in this software are covered by their respective licenses, which are detailed in the LICENSE file.
Obtaining a Virtru AppId
A Virtru AppId
token is required to use the TDF3 SDK. This is how you obtain it
The Virtru TDF3 Python Sample
For more information on how to use the TDF3 Python module, see the online documentation.
General
- Python This module is built with Python3 libraries so it will ONLY work with python3.
The module works on Linux, Windows and OSX.
Installing the module
OS X And Linux
- Navigate to
cd lib
and runsudo python3 setup.py install
. The Virtru SDK module will build and install the module tosite-packages
.
$ sudo python3 setup.py install
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/virtru_tdf3_python
copying virtru_tdf3_python/__init__.py -> build/lib/virtru_tdf3_python
copying virtru_tdf3_python/virtru_tdf3_python.so -> build/lib/virtru_tdf3_python
running install_lib
copying build/lib/virtru_tdf3_python/__init__.py -> /usr/local/lib/python3.7/site-packages/virtru_tdf3_python
copying build/lib/virtru_tdf3_python/virtru_tdf3_python.so -> /usr/local/lib/python3.7/site-packages/virtru_tdf3_python
byte-compiling /usr/local/lib/python3.7/site-packages/virtru_tdf3_python/__init__.py to __init__.cpython-37.pyc
running install_egg_info
Writing /usr/local/lib/python3.7/site-packages/virtru_tdf3_python-1.0.11-py3.7.egg-info
Windows
Make sure the Python installed on your windows machine is 64-bit.
- Navigate to
cd lib
and runpython setup.py install
and will build and install the module tosite-packages
.
PS C:\Users\..\lib> python setup.py install
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\virtru_tdf3_python
copying virtru_tdf3_python\__init__.py -> build\lib\virtru_tdf3_python
copying virtru_tdf3_python\virtru_tdf3_python.pyd -> build\lib\virtru_tdf3_python
running install_lib
copying build\lib\virtru_tdf3_python\virtru_tdf3_python.pyd -> C:\Users\sujan\AppData\Local\Programs\Python\Python37\Lib\site-packages\virtru_tdf3_python
copying build\lib\virtru_tdf3_python\__init__.py -> C:\Users\sujan\AppData\Local\Programs\Python\Python37\Lib\site-packages\virtru_tdf3_python
byte-compiling C:\Users\sujan\AppData\Local\Programs\Python\Python37\Lib\site-packages\virtru_tdf3_python\__init__.py to __init__.cpython-37.pyc
running install_egg_info
Writing C:\Users\sujan\AppData\Local\Programs\Python\Python37\Lib\site-packages\virtru_tdf3_python-1.0.10-py3.7.egg-info
Running the sample
-
Navigate to the
sample
directory and updatevirtru_sample.py
script with yourAppId
-
Run
python3 virtru_sample.py
to see how the files in the sample directory get encrypted and how to apply controls.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for virtru_sdk-2.1.3a294-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbb9098c5b872c895078575c67fdda61f2bba5a098111018449add4fdb0763f5 |
|
MD5 | c5ba4d015179b2f66bd8de43bbd877e5 |
|
BLAKE2b-256 | 1adcf30e8daea9e587dbe2e101beba59911a7a30de0baf9faca764795ac559c0 |
Hashes for virtru_sdk-2.1.3a294-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b032d524a45072463159e3add13e75382e27d78e8ed6f74000f828fc1c34854a |
|
MD5 | 4850b3ea73d724cbc73f4463a23c8ba2 |
|
BLAKE2b-256 | 7e85eae29f822af4443cc87e96294a439111306054e754c2313a282983bc4449 |
Hashes for virtru_sdk-2.1.3a294-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca5a5c309b646fee7446a82f22946aa82ae7ca90565a1f0d3e3231cb657cc97d |
|
MD5 | ac871c3748bc1065e0f92b9f93be607b |
|
BLAKE2b-256 | 8f88a33cc2bb8d3e326992ecea6b8a5980c5fae821d24fac438c625bc3eb4459 |
Hashes for virtru_sdk-2.1.3a294-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbeedc75ab2e2ec9b40ec2a1ec2d3f16fb75d06f0ed47fc1e86de8eacc9ce204 |
|
MD5 | 777eda3dabe5d6b241121262ee8d53b8 |
|
BLAKE2b-256 | 3a0cf4cb7258a167d8220ec51bf57e6736982a7e8bd1b0f5357cc342a32f0aef |
Hashes for virtru_sdk-2.1.3a294-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c5b931d15659a91c902ecf4ce8533173234ccbb29b9550562035a492714d30d |
|
MD5 | a35a09ec34908f3463024e927700e9a3 |
|
BLAKE2b-256 | fd7122707d96e761ea61524c4d2e79b040511d9d30ca98dce15ec9928de9a9a9 |
Hashes for virtru_sdk-2.1.3a294-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 451d4a2ea6f88785ea0738515943475b9cc18c63b0af8a10406589e010020ad6 |
|
MD5 | 9c5b707889953124de4ee59d539f3e03 |
|
BLAKE2b-256 | 8872bfb1d3e04c635c7cc63e71ec665ff67a37ef75d2e0fd23261b4f76172d12 |
Hashes for virtru_sdk-2.1.3a294-cp37-cp37m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2e03ae5e9a4a1d2fbba6b7853dfc6d5a6f2013019a4da331485bc69275225d7 |
|
MD5 | ec128f4c5c3b82e38f84839109f51bc0 |
|
BLAKE2b-256 | c79b637c5c00eb61f50ffafb9d5895938222fcb846f101ffdccd4aa24bf8ec6e |
Hashes for virtru_sdk-2.1.3a294-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c7e653999fadb2de40c3a6fc8111a9a3f549e4f885b6d7cc2ed404674acd652 |
|
MD5 | 6778b0bc3c79e82ca2baab38e19a6e84 |
|
BLAKE2b-256 | 489ddce5fa34f88f04b3b8064ad9a80f410e8b2071c0b9b46e4c02aabe24cc5c |