Chapter 2: Base64, URLBase64, and base64urlbase64
2.1 Basic algorithm rules:
Public encryption algorithms
The encrypted key is not public.
The features of Base64 algorithm disclosure and Key Disclosure do not comply with basic algorithm rules,
I. Brief description
MD5: All called message digest algorithm 5 (Information digest algorithm), can be encrypted, but not decrypted, belong to one-way encryption, usually used for file verification
BASE64: The 8-bit byte of any sequence is
Today, let's look at the use of base64 cryptographic functions, and the difference between Python2 and Python3.
First, base64
Base64 is a representation of binary data based on 64 printable characters. Since 2 of the 6 is equal to 64, every 6 bits
In this paper, we describe the method of Base64 encoding for utf-8 of Chinese strings by JS. Share to everyone for your reference, specific as follows:
String to encode: "Select username from user"
Using Java for encoding, Java programs:
1. The origin of Base64Base64 was first used to troubleshoot e-mail transmission issues. Because of "historical issues," earlier e-mail gateways allow only ASCII (binary 00000000-01111111) characters to be transmitted, and if non-ASCII characters
Tian haili @ csdn
2012-07-31
The mime (multipurposeinternet Mail Extensions) is used when an email is uploaded or transmitted over the network ). Mail transmission can only deliver US-ASCII characters, and other characters in the mail must be
Digest Algorithm (HASHLIB)Python's hashlib provides a common digest algorithm, such as MD5,SHA1 and so on.What is a digest algorithm? Abstract the algorithm is also called hash algorithm and hashing algorithm. It converts any length of data into a
Why do we need to encode parameters? I believe that the majority of programmers who have experience in development know that in the Web, if the parameter value is directly transferred on the URL address, if it is Chinese, or +, there will be garbled
Why do we need to encode parameters? I believe that the majority of programmers who have experience in development know that in the Web, if the parameter value is directly transferred on the Url address, if it is Chinese, or +, there will be garbled
Many friends may use the base64 encoding format, but the encoding is not equivalent to encryption (encoding is not encrypting). Encoding only formats the data, and encryption makes the data confidential.When you select the encoding method, base64
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.