Basic access authentication

Source: Internet
Author: User

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.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.