We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local str = 'CgIAiFs24JOIbXrLAAAAPBwznGIAAAAqwQPxMwAAABU94' res, err = b64.decode_base64url(str) if err then ngx.log(ngx.ERR, err) -- output: invalid input end
openresty: 1.19.9.1 resty.core: 0.1.22
The text was updated successfully, but these errors were encountered:
✗ echo -n CgIAiFs24JOIbXrLAAAAPBwznGIAAAAqwQPxMwAAABU94 | base64 -d [6ӈmzɼ3b*base64: invalid input
Sorry, something went wrong.
@zhuizhuhaomeng
echo -n CgIAiFs24JOIbXrLAAAAPBwznGIAAAAqwQPxMwAAABU94 | base64 -d | xxd -ps base64: invalid input 0a0200885b36e093886d7acb0000003c1c339c620000002ac103f1330000 00153d
I can extract the string "5b36e093".
If decode_base64url has "loose mode", this code be works:
local str = 'CgIAiFs24JOIbXrLAAAAPBwznGIAAAAqwQPxMwAAABU94' res, err = b64.decode_base64url(str) if res then tohex(res) ... else -- err end
I think we won't support 'loose mode' in the near feature.
No branches or pull requests
openresty: 1.19.9.1
resty.core: 0.1.22
The text was updated successfully, but these errors were encountered: