Specifically for URL-safe base64 encoding. Uses -
and _
instead of, respectively, +
and /
. Padding with =
is optional. Source: https://en.wikipedia.org/wiki/Base64#URL_applications
Questions tagged [base64url]
107 questions
1
vote
0 answers
why is data based url containing document.domain alert box empty?
I insert a page containing the following content
test
But when i click on the link it shows me an empty alert box. Why is document.domain not…

Jyosk Natalm
- 11
- 1
1
vote
0 answers
Base64 decode leads to partial decode followed by non printable characters
We are trying to decode base64 encoded strings from some scraped URLs. However the decoding works only partially and starts generating non-printable characters. For example,
Here is the encoded…

hvs
- 518
- 1
- 5
- 21
0
votes
0 answers
buffer.js throws Unknown encoding: base64url
the line
publicKey = Buffer.from(publicKey, 'base64url');
throws
uncaughtException server.js TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: base64url
at fromString (buffer.js:451:13)
at Function.from (buffer.js:305:12)
at…

Gaspar Liboreiro
- 1
- 2
0
votes
0 answers
Base64 Url safe decoding gives different result for Android.Util.Base64 and java.util.base64
I am trying to develop an android application which is supposed to perform Base64 URL safe decoding but stuck at some point. When using android.Util.Base64.decode(string, Base64.URL_SAFE) vs java.util.Base64.getUrlDecoder.decode(string) the output…

Sarthak
- 188
- 1
- 2
- 14
0
votes
0 answers
Python. Can't decode bytes from base64 to JSON
I have a packages encoded by URL-encoded unpadded base64.
It's looks like this:
b'DbMG_38MBgb8ru_RlDE1'
So I have a simple code which must turn this JSON bytes to Python object
import base64, json
b = b'DbMG_38BBgaI0Kv6kzGK'
a =…

Nikita
- 9
- 1
0
votes
0 answers
Decoding a base64 line of string using Python
I'm trying to decode the following string text, as there is a message hidden in…

Thomas Mckillen
- 33
- 4
0
votes
0 answers
How to decode uidb64 from activation link's url Django
I am working on a django project with MySQL.
I am working on the signup part for the candidate with an activation link sent in the email.
When I connected django to MySQL Workbench, It generated a Model file including the "Candidats form" which I am…
0
votes
0 answers
Chrome doesn't display base64 image by the created anchor tag using javascript, firefox does
This exact code works on Firefox but not on Chrome. When I click on the created link, it switches to the new tab but it doesn't display the image, however, on Firefox it does.
const base64image =…

kodfire
- 1,612
- 3
- 18
- 57
0
votes
1 answer
How to generate base64 string from Java to C#?
I am trying to convert a Java function in C#. Here is the original code:
class SecureRandomString {
private static SecureRandom random = new SecureRandom();
private static Base64.Encoder encoder = Base64.getUrlEncoder().withoutPadding();
…

aloisdg
- 22,270
- 6
- 85
- 105
0
votes
1 answer
Getting different result hashing a string in php and node js
I'm trying to get a hashed string in php but the code that i'm trying to replicate is in node js and i get different result although i wrote the same thing
The code in NodeJS
const crypto = require('crypto');
const base64URLEncode = (str) => {
…

Joee4
- 1
- 1
0
votes
0 answers
I'm not getting the correct output when I encode the bytes back to base64
import base64
# Decoding Byte
byte = base64.decodebytes(b'Gcmtb8==')
# Getting an int from the byte
Number = int.from_bytes(byte, byteorder="big")
# From Int to bytes again (For Testing & confirmation)
Decoded =…

Mithian
- 1
0
votes
0 answers
Last character change in Access Token
I am using the access token string as issued by the authorization server. The token is decoded and using for Securing API. Everything works fine but even if I change the last character of token string it's validating. Why does it validate?
0
votes
0 answers
Encode file in base64_encode with expire time
Below are codes that I use to encode the file in base64_encode, Can I encode file base64_encode that expires..? Means the output file from base64 can viewed in a certain time and then expires.
$fileurl = "./$viewmgfoto";///url of my file from…

Joman Manu
- 3
- 4
0
votes
0 answers
Export chart toBase64Image on Vue3 composition API
"vue": "^3.2.37",
"vue-chartjs": "^4.1.2",
Using this code I would like download the chart as base64 image, but I cannot find the instance of chartJs, to invoke toBase64Image() method.
Any help please ? Thanks