Content moved to: https://github.com/tonyxu-io/pkce-generator/blob/master/index.html
Last active
April 20, 2023 20:19
-
-
Save tonyxu-io/21eb57ab2a4aeb2a3ee10f77542abe64 to your computer and use it in GitHub Desktop.
PKCE Code Verifier and Code Challenge Generator. DEMO:https://tonyxu-io.github.io/pkce-generator/
Thanks for sharing
I writed another PKCE generator without external libs (vanilla js) https://gist.github.com/bilelz/4449430eb1070fc34b8ebfaf5fb9f9b5
Thank you all for sharing vanilla JS version without external libraries. I created this demo mainly to demonstrate the functions required to generate the challenge.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note than Math.random is not cryptographically secure, so you really shouldn't use it for this purpose. I recommend using the code here instead: https://github.com/aaronpk/pkce-vanilla-js
It has the added bonus on not having any dependencies, ie you don't need CryptoJS.
The author is a big name in the OAuth2 community.