Base64加密的允许字符
问题描述:
我正在使用Base64加密来加密Java中的用户ID字段。
I'm using Base64 encryption for encryping 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 encrypted string is returned in abc, will it ever contain below characters?
" <double quote>
, <comma>
: <colon>
任何人都可以解决这个问题吗?
Can any one shed some light?
答
您不会在 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.