Skip to content

fffclaypool/base64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Base64

Conversion Algorithm

  1. Define the string to be converted.
abcde
  1. Converts to binary numbers based on the ASCII code table
01100001 01100010 01100011 01100100 01100101

スクリーンショット 2021-08-20 22 39 34

  1. Divide it into 6 bits each
011000 010110 001001 100011 011001 000110 0101
  1. Add 0 so that the last group is 6 bits
011000 010110 001001 100011 011001 000110 010100
  1. Convert to characters based on the base64 conversion table
Y W J j Z G U

スクリーンショット 2021-08-20 22 40 10

  1. Combine them into four letters each
YWJj ZGU
  1. If the last group is less than 4 characters, add = for the number of them
YWJj ZGU=
  1. Concatenating the groups into a single string completes the base64 string
YWJjZGU=

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages