# pkce (Proof Key for Code Exchange)
Simple Python module to generate PKCE code verifier and code challenge.
## Installation
```bash
pip install pkce
```
## Usage
```python
>>> import pkce
>>> code_verifier, code_challenge = pkce.generate_pkce_pair()
```
```python
>>> 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](https://tools.ietf.org/html/rfc7636).
Raw data
{
"_id": null,
"home_page": "https://github.com/RomeoDespres/pkce",
"name": "pkce",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3",
"maintainer_email": "",
"keywords": "",
"author": "Rom\u00e9o Despr\u00e9s",
"author_email": "despres.romeo@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/29/ea/ddd845c2ec21bf1e8555c782b32dc39b82f0b12764feb9f73ccbb2470f13/pkce-1.0.3.tar.gz",
"platform": "",
"description": "# pkce (Proof Key for Code Exchange)\n\nSimple Python module to generate PKCE code verifier and code challenge.\n\n\n## Installation\n\n```bash\npip install pkce\n```\n\n## Usage\n\n```python\n>>> import pkce\n>>> code_verifier, code_challenge = pkce.generate_pkce_pair()\n```\n\n```python\n>>> import pkce\n>>> code_verifier = pkce.generate_code_verifier(length=128)\n>>> code_challenge = pkce.get_code_challenge(code_verifier)\n```\n\n## Additional information\n\nSpec for the PKCE protocol can be found [here](https://tools.ietf.org/html/rfc7636).\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "PKCE Pyhton generator.",
"version": "1.0.3",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "86e510bff1699e2611be82219be09ddb",
"sha256": "55927e24c7d403b2491ebe182b95d9dcb1807643243d47e3879fbda5aad4471d"
},
"downloads": -1,
"filename": "pkce-1.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "86e510bff1699e2611be82219be09ddb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 3200,
"upload_time": "2021-02-08T18:29:05",
"upload_time_iso_8601": "2021-02-08T18:29:05.678522Z",
"url": "https://files.pythonhosted.org/packages/15/51/52c22ec0812d25f5bf297a01153604bfa7bfa59ed66f6cd8345beb3c2b2a/pkce-1.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "e17328c4970806a815f8bd7713f28fcb",
"sha256": "9775fd76d8a743d39b87df38af1cd04a58c9b5a5242d5a6350ef343d06814ab6"
},
"downloads": -1,
"filename": "pkce-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "e17328c4970806a815f8bd7713f28fcb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3",
"size": 2757,
"upload_time": "2021-02-08T18:29:07",
"upload_time_iso_8601": "2021-02-08T18:29:07.070797Z",
"url": "https://files.pythonhosted.org/packages/29/ea/ddd845c2ec21bf1e8555c782b32dc39b82f0b12764feb9f73ccbb2470f13/pkce-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2021-02-08 18:29:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "RomeoDespres",
"github_project": "pkce",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pkce"
}