Skip to main content

UONET+ (hebe) request signer for Python

Project description

UONET+ (hebe) request signer for Python

pypi

Installation

$ pip install -U uonet-request-signer-hebe

Usage

Generate an RSA2048 key pair (private key and certificate):

from uonet_request_signer_hebe import generate_key_pair

certificate, fingerprint, private_key = generate_key_pair()

Sign request content:

from uonet_request_signer_hebe import get_signature_values
from datetime import datetime

digest, canonical_url, signature = get_signature_values(fingerprint, private_key, body, full_url, datetime.now())

Tests

$ python -m pytest .

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

uonet-request-signer-hebe-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file uonet-request-signer-hebe-0.1.1.tar.gz.

File metadata

  • Download URL: uonet-request-signer-hebe-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.50.0 CPython/3.8.2

File hashes

Hashes for uonet-request-signer-hebe-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7e2768a67a40b790973ec2dbc7e57cc2b242410fd620ee80ab1a6c60b0eff2a3
MD5 d9b3ea7c9e8914d45a9c2880d4402c10
BLAKE2b-256 314352a680a72330f049e4bc5f649c505b6f76d650cc41edfd53c990eea8cfa8

See more details on using hashes here.

File details

Details for the file uonet_request_signer_hebe-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: uonet_request_signer_hebe-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.50.0 CPython/3.8.2

File hashes

Hashes for uonet_request_signer_hebe-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31af4e6acaa5d312f28982d50298c06950c733180858c95d65ef51bd22846b53
MD5 b65f09bcb3f1e0f4b7cc74cd24d8f1d3
BLAKE2b-256 517baecff2826a178bf2cc00df6b11eda12a69c3009b0e30578094f47cee1e83

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 Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page