且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Apache 的 Base64.encodeBase64 和带有 Base64.Default 标志的 Android 的 Base64.encode 之间有什么区别吗?

更新时间:2023-09-19 22:36:46

否,不同之处在于默认设置下,Android 的 Base64 包含行终止符.要获得与 Apache 编码相同的结果,请使用 Base64.NO_WRAP.

No, the difference is that with the default settings, Android's Base64 includes line terminators. To obtain the same result as with the Apache encoding, use Base64.NO_WRAP.