当前位置:网站首页>Base64 Encoding
Base64 Encoding
2022-04-21 06:37:00 【熊小憨】
标准编码
src := "abc123!?$*&()'-=@~"
sEnc := base64.StdEncoding.EncodeToString([]byte(src))
fmt.Println(sEnc)
YWJjMTIzIT8kKiYoKSctPUB+
标准解码
s := "5rGf5bGx5aaC5q2k5aSa5aiH77yM5byV5peg5pWw6Iux6ZuE56ue5oqY6IWw44CC"
sDec, _ := base64.StdEncoding.DecodeString(s)
fmt.Println(string(sDec))
江山如此多娇,引无数英雄竞折腰。
URL编码
src := "abc123!?$*&()'-=@~"
uEnc := base64.URLEncoding.EncodeToString([]byte(src))
fmt.Println(uEnc)
YWJjMTIzIT8kKiYoKSctPUB-
URL解码
s := "5rGf5bGx5aaC5q2k5aSa5aiH77yM5byV5peg5pWw6Iux6ZuE56ue5oqY6IWw44CC"
uDec, _ := base64.URLEncoding.DecodeString(s)
fmt.Println(string(uDec))
江山如此多娇,引无数英雄竞折腰。
区别
相对于StdEncoding,URLEncoding通常用于URL和文件名。
版权声明
本文为[熊小憨]所创,转载请带上原文链接,感谢
https://blog.csdn.net/suma110/article/details/124235573
边栏推荐
猜你喜欢

IPV4-IGP

Longxun series: lt8911, transfer chip for converting LVDS / Mipi DSI signal into EDP signal, lt8619, HDMI / MHL signal into LVDS / RGB signal

Core source: ry3408 and ry3410. Main replacement: silijie sy8088 and sy8089, tlv62568 and tlv62565 of Ti, mp2161, mp2128 and mp2105 of core source

NP、OSPF Stub区域

NP、OSPF 故障排除

Domestic first USBhub Daquan, USB hub2 0,HUB3. 0, Wangjiu prolific, pl2586, ma8601, and xinrunde SL2 2A、SL2. 2s, replace Tang Ming's Fe1 1、FE1. 1s,, Weifeng vl810

Sort method (2) = > insert sort

NP, NSSA area

2022-1-17至2022-1-30 迭代器模式

Use Baidu map POI to crawl the required data
随机推荐
Slice upload solves the problem of single file upload
2020-12-21至2022-1-2:解析观察者模式
PIM-DM
Troubleshooting NP and OSPF
【WPF】数据模板选择器DataTemplateSelector
2020-12-25
Audio power amplifier, ns4165b single channel 5.3w class AB \ D power amplifier, mainly replacing cs8571, cs8871 and cs5218 of Zhipu core and haa2018 of hailichuang
Sort method (2) = > insert sort
蓝桥杯——十六进制与十进制之间的转换
论文阅读:Security Challenges in an Increasingly Tangled Web
Dip image smoothing
What is websocket
Voisins bgp
論文閱讀:Measuring the Impact of a Successful DDoS Attack on the Customer Behaviour of Managed DNS Servi
Solve the problem of Chinese garbled code
Cs5801 specification | cs5801 HDMI to EDP conversion scheme | HDMI to DP adapter board design, hdmi2 0 turn edp1 4. Support downward compatibility
论文阅读:The Chain of Implicit Trust: An Analysis of the Web Third-party Resources Loading
Blue Bridge Cup -- sequence sequencing problem
Switching technology
类和对象的相关知识