Basic access authentication
Overview: An Optimized Solution for Identity Authentication in Web applications by directly providing user names and passwords.
Principle: connect username and password through ":" and combine them into "username: Password". Then, encrypt the string with base64, transmit the encrypted string to the Web server. The server decrypts the string with base64, obtains the username and password, and then performs matching verification.
Reason:
1. The encrypted base64 ciphertext can be directly viewed by users without knowing what the user name and password are, but can be viewed after being decrypted with a simple base64. Therefore, this solution is not for security purposes.
2. Because the authentication method is based on the HTTP protocol, some characters are restricted in the message transmission. The ciphertext after base64 encryption can solve this problem.