Why Convert Files to Base64 for Upload?

Why Convert Files to Base64 for Upload?

1 Introduction Recently, I encountered a situation in development where file uploads were done using Base64 encoding. I remember when I first learned about HTTP file uploads, they were done by directly uploading binary files with a content-type of multipart/form-data. We know that all transmissions over the network ultimately transmit binary streams, so there is … Read more

How to Encrypt Chinese Text

How to Encrypt Chinese Text

Photographer: Product Manager This Skewered Food Shop Has Finally Opened When reading various encryption articles, you often see that the authors use numbers as examples for encryption. However, in real life, we communicate in Chinese. So how can we encrypt Chinese text? In the article “Don’t Worry, No One Can Snooze Our Chat Messages”, we … Read more

Base64 Is Not An Encryption Algorithm

Base64 Is Not An Encryption Algorithm

What is Base64? Base64, as the name suggests, is a character set that includes lowercase letters a-z, uppercase letters A-Z, digits 0-9, and symbols “+” and “/”, totaling 64 characters (plus one “=”, making it actually 65 characters; the reason for the “=” will be explained later). Any symbol can be converted into a character … Read more