#android.util.base64
1 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @hollow phoenix! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
simple
declaration: module: java.base, package: java.util, class: Base64
Base64.getEncoder().encodeToString(data)
Thank you
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
But
It returns like a below
zRgubrGYn1Z3KbFZyZfx3H2Y7tCWu4wzL+rVCdn4Uvrmvnuwymj2MNKizFtrq9SUTuHm72kuw/iy8XM9MtXtYg
I want like a below
aadC5-YKQ6I3ojKtAaMejyKsnZkZx5FqzKHYuHaLAkQ
it Base64 encodes the data
if you want a different Base64 string, you need different data
that isn't even valid Base64
Also I don't think it would return that - I think it should return zRgubrGYn1Z3KbFZyZfx3H2Y7tCWu4wzL+rVCdn4Uvrmvnuwymj2MNKizFtrq9SUTuHm72kuw/iy8XM9MtXtYg==
with ==s at the end
i want
wn.c.d(wn.c.f30135a, null, 0, 3, null)
in Main.java
(Constants.SHA256 = "SHA-256";)
I have no idea what you are talking about
android.util.Base64.encodeToString(data, 11)
i want flag
worthy of java.util.Base64.getEncoder().encodeToString(data)
11 means
NO_PADDING, which has value 1
NO_WRAP which has value 2 and
URL_SAFE which has value 8.
i want to NO_PADDING,NO_WRAP,URL_SAFE base64 encode in
java.util.base64
these flags don't exist there and these things are not really specific to Base64
For URL_SAFE, you can use String#replace
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.