Password Encryption solution: Best practices and alternative solutions

Source: Internet
Author: User

Q: What is the best practice to write code to encrypt passwords? Can you provide some sample code?

A: This is an interesting question: First, I want to ask why you need to implement a password encryption program, rather than letting the operating system or application manage the information.

If you want to write an application that can manage the encryption code, in this regard, we generally do not put the password in the code, but use a certificate such as Kerberos ), or trust relationship information such as the Federal SAML statement), because if a hacker has enough time and energy, he can finally crack the encrypted password.

However, the best practice of encryption depends on the language you use. I think that the search for "encrypted passwords" on two websites on Google will show sample code of many websites.) One is encrypted HTML, which has many tools, not just web pages; the other is the JavaScript toolkit, which allows you to put the password and generate Java code for you.

  1. Network encryption and decryption application skills
  2. Topic: encryption and decryption technology

Related Article

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.