Skip to main content

DAtAnchor Inc Python library

Project description

Setup and Usage

Pre-Requisites:

  1. pip3 install requests
  2. pip3 install psutil

Setup:

  1. pip3 install "datanchor==1.0"
  2. Usage Example below. Note: data object in the example should be replaced with the response you receive from Datanchor encrypt service.
from app.datanchor import Datanchor

def main():
    d = Datanchor()
    data = {
        "data": "U2FsdGVkX1+bvTL3NjzTIMHS4it8++O33BlKmGbz1Ts=",
        "context": "U2FsdGVkX19Tws0WtFmpHbr2C5lkeqCGvJyZ03EIZp/OKxYcFm8u4HXVQIij6QRj1IGHLKiussrr8/5qTmGjt2dJ2EbqJcs4rlX5O2wNc2X1SreCY0T+wlPM/a4/i46W",
        "username": "U2FsdGVkX1+anPgxa0gXsi8Ka/0S0B1ttrm1qZUfeso=",
        "key": "U2FsdGVkX18+fXxHbWIfSiqSqWisamH56m/HNq6/bWqKPuz/2PUAvGXN/RDDK16RRaQeW3djEfMPmkAOQfBvihj8uuxkvx31p7I1BwVBXbyR5t2iRs62WwnbRaN8AAVCarqak4kFYRHRss6uHUXBTN7yDxhm7SgofwBUUb6nkCshYksDCwRO0KxhZEKi9rzZDg9jA+VvDMdSSQ+FbRGPUWV4rOjN1hGDzU9M2BaGiWJLx3I+EiFOFSgjq0+bVSl297qUhH5GC4k6wj0qiih065g5MA+O7BbfkQD76xDODtftarGggk0cBi+YhqI0pS7BeJsZrJtn5kVxMtqUTuoalui4+IVz70bM8eE072BhA+c7vkLOh7RedTcTEfl8yFgbY77F1PEA8IAVIhOWEUDYPgG9ePuzOFKWM6RT6c1DrJmY/a5hjh6781SncXBs39CLusVuVDn4dGP956DiDu42minj1Xzs1/Kz9JnZmsuVaTLk2kW/uyX4uUpedx+4N6hmkjZO5Q/eMcbc2HtNgQNnYgHvWYdOC/Auv3ZuWXKMgsKUV0gLVjJMLDHHu+GCs21DxivuSOv0Vo5MTEFc4nb3RQEpPhWP8KANArB+s/g1MhCX2S+TbMGefojI3dQ2AEvrNYf5NDHrfBfR15W7CooKt/1u7HKxeieXRRWXtrEfF9+a3Do08VpU/72sRpRX6WdUAhyLz/UDSov4lZboDgeeyg=="
    }

    print(d.decrypt(data))

main()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

datanchor-1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file datanchor-1.0-py3-none-any.whl.

File metadata

  • Download URL: datanchor-1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.2

File hashes

Hashes for datanchor-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ffb28be37039c197e378f1dda73bce535c461f8e8e92d1015585d7e5632d4de
MD5 c6ad3232a7f9b2d6d2eb149f9ade12e1
BLAKE2b-256 badec2ffcc07aaa5f9fc6c2a122f01293c38b6b99980383440c1a685c7eca1e4

See more details on using hashes here.

Supported by

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