Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2008
    Posts
    4
    Rep Power
    0

    Default Change Password Functionality

    Hello there,

    I have a requirement for developing a functionality such that a password expires every 90 days and the user has to change the password..for this i made use of acegi in Spring to check if the user's credentials expired...while changing the new password should not be same as 3 last used passwords..i have no idea now which way could the function be...could you please give me an idea how to check the password with 3 last used passwords..do we need to save the 3 passwords in a database and check or is there any other specific method to handle the issue.


    Please reply me ASAP.

    Thanks in advance,
    Priyadharshini

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    I think the best solution is store the encrypted password in a database. Simply you can work with hashing methods there.

  3. #3
    Join Date
    Mar 2008
    Posts
    4
    Rep Power
    0

    Default

    Can u please give the same code to implement the function - encrypting and hashing etc

  4. #4
    Join Date
    Mar 2008
    Posts
    4
    Rep Power
    0

    Default

    sorry! sample code

  5. #5
    sanjeevtarar's Avatar
    sanjeevtarar is offline Senior Member
    Join Date
    Apr 2008
    Location
    Jaipur(India)
    Posts
    318
    Rep Power
    7

    Default use SHA-1

    Hi..

    you can use SHA-1, SHA-2, MD-5 etc. to encrypt password.

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

Similar Threads

  1. Password System help
    By quickfingers in forum New To Java
    Replies: 1
    Last Post: 06-23-2008, 06:18 PM
  2. how to change password in regular intervals
    By mohan404 in forum Advanced Java
    Replies: 4
    Last Post: 04-08-2008, 11:46 AM
  3. add password to folder
    By ismailsaleh in forum AWT / Swing
    Replies: 1
    Last Post: 01-08-2008, 05:46 AM
  4. Problem with a password
    By saytri in forum New To Java
    Replies: 2
    Last Post: 12-27-2007, 11:06 AM
  5. class wordprocessor with spellchecking functionality
    By manuniyi in forum AWT / Swing
    Replies: 1
    Last Post: 12-25-2007, 05:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •