Content moved to: https://github.com/tonyxu-io/pkce-generator/blob/master/index.html
-
-
Save tonyxu-io/21eb57ab2a4aeb2a3ee10f77542abe64 to your computer and use it in GitHub Desktop.
According to the same standard @antoninbouchal mentioned, possible characters also contain "-" / "." / "_" / "~"
According to the same standard @antoninbouchal mentioned, possible characters also contain "-" / "." / "_" / "~"
You are right, thanks for pointing out. I fixed with those characters.
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.
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.
Great tool, really. Helps me a lot