Project: pkce

PKCE Pyhton generator.

Project Details

Latest version
1.0.3
Home Page
https://github.com/RomeoDespres/pkce
PyPI Page
https://pypi.org/project/pkce/

Project Popularity

PageRank
0.0015761837527500137
Number of downloads
1396332

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.