当前位置:网站首页>Introduction to Base64 coding
Introduction to Base64 coding
2022-07-03 08:19:00 【AI fish head with chopped pepper】
Base64 Code Introduction
First ,Base64 It's a way of encoding , Instead of real encryption . Even if ,Base64 It is only used as a simple “ encryption ” To protect some data , Real encryption is usually cumbersome .
Base64 Use 64 A common printable character to store and represent binary word data , At the same time, simple encryption can also be carried out , Generate unreadable text .Base64 The character set includes large 、 Small letters , Arabic numerals 0-9, as well as "+“ and ”/“, And suffixed ”=“ total 65 Characters , Among them, only the former 64 individual . How to use this 64 Characters to represent binary data ? This needs to be in decimal 0 To 63 And the use of 64 Establish a one-to-one correspondence between characters . The specific mapping is decimal 0 To 63 And, in turn, "A-Z”, “a-z”, “0-9”, “+”, "/" One-to-one correspondence . In the computer 64 One possibility only needs 6bits Can express (26=64), therefore Base64 The expression is essentially based on 6bits In units of , Use the specified general character set to represent and store binary data .
Base64 Encoding table
| Code value | character | Code value | character | Code value | character | Code value | character |
|---|---|---|---|---|---|---|---|
| 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 | / |
Using tools http://www.lzltool.com/base64 It can be parsed online Base64, take Base64 Convert to string or hexadecimal 、 or Base64Url Format 
边栏推荐
- Multi traveling salesman problem -- overview of formula and solution process
- P2704 [noi2001] artillery position (shape pressure DP)
- WPF:解决MaterialDesign:DialogHost 无法关闭问题
- I want to do large screen data visualization application feature analysis
- Base64编码简介
- Clion toolchains are not configured configure disable profile problem solving
- Conversion between JSON and object
- Mutual call between Lua and C #
- Ventuz Foundation Series "one step at the door"
- 數據庫應用技術課程設計之商城管理系統
猜你喜欢

An intern's journey to cnosdb

MXone Pro自适应2.0影视模板西瓜视频主题苹果cmsV10模板

Transfinite hacker cognition

Shader foundation 01

the installer has encountered an unexpected error installing this package

Redis data structure

Flex flexible box layout
![[cloud native] introduction and use of feign of microservices](/img/39/05cf7673155954c90e75a8a2eecd96.jpg)
[cloud native] introduction and use of feign of microservices

Basic operation and process control

the installer has encountered an unexpected error installing this package
随机推荐
Simply start with the essence and principle of SOM neural network
P2704 [NOI2001] 炮兵阵地(状压dp)
[cocos creator] Click the button to switch the interface
Transplantation of tslib Library
Base64 and base64url
详解sizeof、strlen、指针和数组等组合题
JS regular case-
Use filechannel to copy files
【云原生】微服务之Feign的介绍与使用
[cocos creator] get the resource UUID
数据库应用技术课程设计之商城管理系统
oracle中的 (+)是什么意思
Wechat native applet cloud development learning record 01
Redis的数据结构
P1896 [SCOI2005] 互不侵犯(状压dp)
[cloud native] introduction and use of feign of microservices
Golang 中string和int类型相互转换
C language - Introduction - essence Edition - take you into programming (I)
数据的存储
Haproxy+kept cluster setup 02