沉冰浮水

沉冰浮水

做最终到的事,成为最终成为的人!
github
bilibili
mastodon
zhihu
douban

Talk about base64 encoding

Introduction:

The main purpose of base64 encoding is not to ensure that it cannot be cracked, but to ensure that the recipient can obtain the original content using the "correct method";

Under this premise, any modification or upgrade based on base64 is meaningless, as it is neither secure nor universal.

Original Text - base64

Chinese Translation - Pinyin

There is no need to specifically develop a set of Pinyin, even the Taiwanese phonetic symbols ㄅ ㄆ ㄇ ㄈ ㄉ ㄊ ㄋ ㄌ ㄍ ㄎ ㄏ ㄐ ㄑ ㄒ ㄓ ㄔ ㄕ ㄖ ㄗ ㄘ ㄙ are already like a foreign language to me;

However, is Pinyin or phonetic symbols used for encryption?

In fact, it is not a problem to directly exclude base64 from the category of "encryption".

Below are the "encrypted" results of two functions in the lz-string.js library for the same input. Strictly speaking, the main purpose of this library is not encryption but compression;

// LZString.compress(str)

\ ᮂ悦Ǫ鵞᐀ ← Is there zero-width space at the beginning?

↑ This is not readable by humans, and copying it will cause damage due to special characters;

// LZString.compressToBase64(str)

G4JgpgHqnV4UA===

↑ After secondary processing into base64, it ensures that no information is lost during storage and transmission;

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.