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.