Brief Introduction
Product Introduction
User Guide (Dash)
API
Overview
restV1
Term Description
Security Mechanism
Upload
Resource Management
Advanced Resource Management
Appendix
Notification Description
Ops Parameter Format
HTTP Response Status Code
URL-Safe Base64 Encoding
HMAC-SHA1 Signature
SDK
restV2
Tools
Tutorials
文档中心 Object Storage API URL-Safe Base64 Encoding

URL-Safe Base64 Encoding

更新时间:2022-03-01 18:00:57

URL-Safe Base64 Encoding is suitable for scenarios where Base64 encoded results are transferred with the URL method. The basic process of this encoding method is first encoding content into a character string in Base64 format, then checking the resultant character string, substituting hyphens (-) for the plus signs (+) in the character string, and substituting the underscores (_) for the forward slashes (/).

  • Basic Base64 alphabet
    image.png

  • URL-optimized Base64 alphabet (Differences are marked in red and feature the complete same algorithmic processing procedure)
    image.png

  • Algorithmic processing procedure
    image.png

For the detailed encoding specifications, see the relevant descriptions in the RFC4648standard.

本篇文档内容对您是否有帮助?
有帮助
我要反馈
提交成功!非常感谢您的反馈,我们会继续努力做到更好!