Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么有些应用程序基于 64 位编码 HMAC,即使它不是用于邮件目的?它是旧实现或实践的痕迹吗?
如果你在谷歌上用“HMAC”、“base”和“64”这些词做一点研究,你会看到很多人这样做,我不知道为什么。我很确定它与存储或输出无关。
如果您想发送编码为 SOAP 信封或 JSON 数据的二进制数据,您将面临原始数据部分被解释为这些格式的结构元素的风险(例如,'<'、'['、'{')。
因此,您需要将其编码为 Base64 以将其内容保存在网络上。