Javascript-question about using crypto-jsAES to encrypt PHP backend decryption? Explanation of sorting

Source: Internet
Author: User
After reading the encrypted login related content, there is indeed no certificate, not https login is not safe, and the POST value can be seen in all. I found some information about js encryption and php decryption, but it is still not very clear. The general idea is to send a request to the background through the front-end to obtain a secret... after reading the encrypted login related content, there is indeed no certificate, not https login is not safe, and the POST value can be seen in all.
I found some information about js encryption and php decryption, but it is still not very clear,
The general idea is to send a request to the background through the foreground to obtain a key, and then encrypt the key at the foreground and transmit it to the backend for decryption.
(Simple js encryption without a certificate)
Problem
1. Is there a security risk when the front-end requests a key from the backend, whether it is a cookie or a session?
2. There are indeed a lot of questions to ask, but I hope the gods can help me sort them out.

Http://skysbird.duichenmei.com /? P = 306 saw this code, and the idea was clearer.

I searched the two codes on the Internet.
------ Javascript

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.