Base64编码允许的字符 [英] Base64 encoding Allowed Characters

查看:945
本文介绍了Base64编码允许的字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Base64编码来编码Java中的用户ID字段.

I'm using Base64 encoding for encoding user id field in Java.

String abc = new String(Base64.encodeBase64("Actualuseridfield"));

我想知道上面的字符串abc是否包含字符,:?"?

I want to know whether the string abc above will contain the character " , : or not?

以abc返回Base64编码的字符串时,它是否会包含以下字符?

When the Base64 encoded string is returned in abc, will it ever contain below characters?

" <double quote> 
, <comma> 
: <colon>

推荐答案

您不会在 Base64 编码的字符串.您将看到等号,因为它们用于填充结尾内容.

You will not see any commas, colons, or double quotes in a Base64 encoded string. You will see equals signs since they're used to pad the ending content.

这篇关于Base64编码允许的字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆