jxck.io | https://jxck.io -
kandi X-RAY | jxck.io Summary
kandi X-RAY | jxck.io Summary
https://jxck.io
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jxck.io
jxck.io Key Features
jxck.io Examples and Code Snippets
Community Discussions
Trending Discussions on jxck.io
QUESTION
The following strings are different for server-generated and client-generated challenges:
+
->-
/
->_
=
->(empty space)
Why do we need to do substitution to solve this?
Source code used for reference.
...ANSWER
Answered 2019-May-30 at 13:17It looks like it the difference between the plain Base64 encoding and Base64 URL, and padding vs. no padding options (trailing =
s). The latter is safe to use in URLs, contrary to the former. See also https://en.wikipedia.org/wiki/Base64#URL_applications
Webauthn requires using Base64 URL encoding while some functions (such as javascript's atob
or btoa
) the plain Base64 encoding scheme, hence the need to convert from one to another.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jxck.io
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page