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 hashes)

Uploaded Source

Built Distribution

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