Results 1 to 6 of 6
Thread: Change Password Functionality
- 04-02-2008, 11:59 AM #1
Member
- Join Date
- Mar 2008
- Posts
- 4
- Rep Power
- 0
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
- 04-02-2008, 12:08 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
I think the best solution is store the encrypted password in a database. Simply you can work with hashing methods there.
- 04-02-2008, 12:35 PM #3
Member
- Join Date
- Mar 2008
- Posts
- 4
- Rep Power
- 0
Can u please give the same code to implement the function - encrypting and hashing etc
- 04-02-2008, 12:36 PM #4
Member
- Join Date
- Mar 2008
- Posts
- 4
- Rep Power
- 0
sorry! sample code
- 04-02-2008, 12:54 PM #5
use SHA-1
Hi..
you can use SHA-1, SHA-2, MD-5 etc. to encrypt password.
- 04-02-2008, 12:56 PM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Sorry I don't have a sample code. But the javax.crypto package included all you need.
Similar Threads
-
Password System help
By quickfingers in forum New To JavaReplies: 1Last Post: 06-23-2008, 06:18 PM -
how to change password in regular intervals
By mohan404 in forum Advanced JavaReplies: 4Last Post: 04-08-2008, 11:46 AM -
add password to folder
By ismailsaleh in forum AWT / SwingReplies: 1Last Post: 01-08-2008, 05:46 AM -
Problem with a password
By saytri in forum New To JavaReplies: 2Last Post: 12-27-2007, 11:06 AM -
class wordprocessor with spellchecking functionality
By manuniyi in forum AWT / SwingReplies: 1Last Post: 12-25-2007, 05:32 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks