Skip to main content

PKCE Pyhton generator.

Project description

pkce (Proof Key for Code Exchange)

Simple Python module to generate PKCE code verifier and code challenge.

Installation

pip install pkce

Usage

>>> import pkce
>>> code_verifier, code_challenge = pkce.generate_pkce_pair()
>>> import pkce
>>> code_verifier = pkce.generate_code_verifier(length=128)
>>> code_challenge = pkce.get_code_challenge(code_verifier)

Additional information

Spec for the PKCE protocol can be found here.

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

pkce-1.0.3.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

pkce-1.0.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file pkce-1.0.3.tar.gz.

File metadata

  • Download URL: pkce-1.0.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.9

File hashes

Hashes for pkce-1.0.3.tar.gz
Algorithm Hash digest
SHA256 9775fd76d8a743d39b87df38af1cd04a58c9b5a5242d5a6350ef343d06814ab6
MD5 e17328c4970806a815f8bd7713f28fcb
BLAKE2b-256 29eaddd845c2ec21bf1e8555c782b32dc39b82f0b12764feb9f73ccbb2470f13

See more details on using hashes here.

File details

Details for the file pkce-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pkce-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.9

File hashes

Hashes for pkce-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 55927e24c7d403b2491ebe182b95d9dcb1807643243d47e3879fbda5aad4471d
MD5 86e510bff1699e2611be82219be09ddb
BLAKE2b-256 155152c22ec0812d25f5bf297a01153604bfa7bfa59ed66f6cd8345beb3c2b2a

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