文本base64至hex base64
我遇到了一个问题,其中一个API我使用converts base64 by hex,另一种是通过文本转换。我需要能够将十六进制字符串转换为文本,以使两个API的编码相同。 https://emn178.github.io/online-tools/online-tools/online-tools/base-tools/base64_encode.html 此页面包含一个很好的示例,如果我输入
fb95 <- HEX -- BASE64-> +5U=
fb95 <- TEXT -- BASE64-> ZmI5NQ==
有办法将A转换
std::string text("fb95");
为“十六进制”表示,该表示为 +5U =
或转换
std::string b64("ZmI5NQ==");
为 +5U =
I'm having an issue where one api I use converts base64 by Hex and another one converts by Text. I need to be able to convert the hex string to text so that the encoding is the same for both api's.
https://emn178.github.io/online-tools/base64_encode.html
This page contains a good example, if I input
fb95 <- HEX -- BASE64-> +5U=
fb95 <- TEXT -- BASE64-> ZmI5NQ==
Is there a way to convert a
std::string text("fb95");
to it's hex representation that is encoded as +5U=
or convert
std::string b64("ZmI5NQ==");
to +5U=
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论