当前位置:网站首页>Base64编码简介
Base64编码简介
2022-07-03 08:06:00 【AI-剁椒鱼头】
Base64编码简介
首先,Base64是一种编码方式,而不是真正的加密方式。即使算,Base64 也仅用作一个简单的“加密”来保护某些数据,而真正的加密通常都比较繁琐。
Base64使用64个通用的可打印字符来存储和表示二进制字数据,同时也可以进行简单的加密,生成不可读文本。Base64字符集包括大、小写英文字母,阿拉伯数字0-9,以及"+“和”/“,以及作后缀填充的”=“共计65个字符,其中编码时只使用前64个。如何使用这64个字符来表示二进制数据呢?这就需要在十进制的0到63以及使用的64个字符之间建立一一对应关系。具体的映射是将十进制的0到63依次与"A-Z”, “a-z”, “0-9”, “+”, "/"一一对应。在计算机中64种可能只需要6bits就能表达(26=64),因此Base64表示法实质上是以6bits为单位,使用规定的通用字符集来表示和存储二进制数据。
Base64编码表
码值 | 字符 | 码值 | 字符 | 码值 | 字符 | 码值 | 字符 |
---|---|---|---|---|---|---|---|
0 | A | 16 | Q | 32 | g | 48 | w |
1 | B | 17 | R | 33 | h | 49 | x |
2 | C | 18 | S | 34 | i | 50 | y |
3 | D | 19 | T | 35 | j | 51 | z |
4 | E | 20 | U | 36 | k | 52 | 0 |
5 | F | 21 | V | 37 | l | 53 | 1 |
6 | G | 22 | W | 38 | m | 54 | 2 |
7 | H | 23 | X | 39 | n | 55 | 3 |
8 | I | 24 | Y | 40 | o | 56 | 4 |
9 | J | 25 | Z | 41 | p | 57 | 5 |
10 | K | 26 | a | 42 | q | 58 | 6 |
11 | L | 27 | b | 43 | r | 59 | 7 |
12 | M | 28 | c | 44 | s | 60 | 8 |
13 | N | 29 | d | 45 | t | 61 | 9 |
14 | O | 30 | e | 46 | u | 62 | + |
15 | P | 31 | f | 47 | v | 63 | / |
使用工具 http://www.lzltool.com/base64 可以在线解析Base64,将Base64转换成字符串或十六进制、或Base64Url格式
边栏推荐
- the installer has encountered an unexpected error installing this package
- [global product discovery 2] the first pure cloud augmented reality (AR) platform - Israel
- 链式长取值
- MAE
- I want to do large screen data visualization application feature analysis
- Golang的range
- Unity one click AssetBundle
- [set theory] order relation (hastu example | divisive relation hastu | inclusive relation hastu | refinement relation hastu)
- Golang json格式和结构体相互转换
- An article for you to understand - Manchester code
猜你喜欢
方正锐利重磅升级到12.0版本,包装印前处理更加便捷、高效!
C#课程设计之员工信息管理系统
Oracle insert single quotation mark
Install cross compiler arm none liunx gnueabihf
L'installateur a été installé avec une erreur inattendue
Three characteristics
unity2019_ Input management
What is a data type? What is the use of data types?
数据库应用技术课程设计之商城管理系统
一条通往服务器所有端口的隧道
随机推荐
A tunnel to all ports of the server
L'installateur a été installé avec une erreur inattendue
What is BFC?
Lua hot update basic grammar
Unity2019_ Natural ambient light_ Sky box
Golang 时间格式整理
[set theory] order relation (hastu example | divisive relation hastu | inclusive relation hastu | refinement relation hastu)
How to establish rectangular coordinate system in space
Demonstration of plug-in use of ventuz basic series
Huawei switches are configured with SSH login remote management switches
什么是数据类型?数据类型有什么用?
Client server model
C语言-入门-精华版-带你走进编程(一)
Redis batch startup and shutdown script
Register keyword
Install cross compiler arm none liunx gnueabihf
Docker installs MySQL and successfully uses Navicat connection
idea取消引用显示效果
Ilruntime learning - start from scratch
方正锐利重磅升级到12.0版本,包装印前处理更加便捷、高效!