How to ensure the security of password transmission (creative)

Source: Internet
Author: User

How to ensure the security of password transmission

The general transfer process:

procedure 1, the service side to encrypt the password processing

Pros: Ensure that passwords are not visible to background personnel

Cons: Can intercept

procedure 2, the client uses the symmetric encryption algorithm to encrypt the password

Pros: Ensure that the blocked password in Process 1 is not available in the client login module

Cons: Interception of ciphertext and tampering in transit

procedure 3, client and server use asymmetric encryption algorithm (non- CA certificate + One-way authentication) to encrypt and decrypt password

Advantage: The transmission process is difficult to crack even if it is intercepted

Cons: Deployment difficulties (it is worth mentioning that trust should not be trusted by the certificate is not secure, that is, after getting the correct communication format, through the forgery of the background service can be password authentication)

procedure 4, the client and the server use the Asymmetric encryption algorithm (CA certificate + One-way authentication) to encrypt and decrypt the password

Pros: Solve The problem in process 3

Disadvantages: CA Certification is an additional expense (it is worth mentioningthat the CA certificate is not necessarily safe >_<)

procedure 5, client and server use asymmetric encryption algorithm (CA certificate + bidirectional authentication) to encrypt and decrypt password

Pros: The best transport security at the moment

Cons: More difficult to deploy (you need to build, download, install, and maintain client certificates separately)

Comprehensive:  

The safest way to do this now is to: CA Certificate + bidirectional authentication + legacy password. But is there a more practical way of encrypting it? For example, the traditional password to improve, such as the client and the service side of the identification information, and to ensure that not be spoofed to deceive the client and the server? A simple design is:! @#! %¥%>_<, as specified below,


A simple password improvement scheme


1, Client Request registration information: Account, password summary, partial password plaintext or other password for some processing results (such as xxx), server one by one save

2, Client Request login information: Account, password summary,XXX Summary

3, the service side one by one verification, success is feedback: (xxx+ Password Summary) of the digest string

4, The client verifies the feedback and decides whether to pass

Explanation: Is there a case of counterfeit servers? As long as XXX has not been leaked, step 4 will not be judged by

Cons: When you are registered, you are doomed!!! A fix to the practice is stitching the password digest and xxx to confuse >_<


How to ensure the security of password transmission (creative)

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.