Base64加密的允许字符 [英] Base64 encrypted Allowed Characters

查看:472
本文介绍了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.

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

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