Cookie Session question

Source: Internet
Author: User
I am making a landing page for a website.
You want to keep your account with cookies on the client side. The session is called when needed.
Now the account is the user's mobile phone number.
I think the user mobile phone number is not secure on the client.
Ask how to solve.
I feel it is not safe to use bidirectional encryption.


Reply to discussion (solution)

Client is not secure then save the server.

$phone = MD5 ("Mobile phone Number"),//This is not too safe $phone = MD5 (' Mobile phone number ');//Don't worry, let them crack it.

PS: Add one more segment to a database table
Registration time to add 2 times the results of MD5 also added to the segment address
When users log in, direct query 2 times MD5 Results ~ ~ ~
MD5 irreversible, that's the way I think of the solution.
  • 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.