OA project 13: user management password encryption in the system module

Source: Internet
Author: User
Tags md5 digest

Note: This tutorial isChuanzhi podcast Tang YangguangThe free OA project video posted by the lecturer my text version practice notes, I use this to enhance my development knowledge, if some netizens reprint, please note. Thank you.

1. An error is left over in the previous section. <s: iterator value = "# roles"> when a position is displayed on the JSP page, the position cannot be displayed. You must remove # And then click OK.

Two passwords MD5 encryption:

Import package: commons-codec.jar

In useraction, change the password setting code:

// Use the MD5 Digest (add () for the password ())

String md5digest = digestutils. md5hex ("1234 ");

Model. setpassword (md5digest );

// Use the MD5 Digest (initpassword () for the password ())

String md5digest = digestutils. md5hex ("1234 ");

User. setpassword (md5digest );

Now, the entire system management is complete, and the next section will go to the implementation of permission management.

OA project 13: user management password encryption in the system module

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.