Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-02-2008, 12:59 PM
Member
 
Join Date: Mar 2008
Posts: 4
Priyadharshini.s is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-02-2008, 01:08 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,028
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
I think the best solution is store the encrypted password in a database. Simply you can work with hashing methods there.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
(Close on September 4, 2008)

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-02-2008, 01:35 PM
Member
 
Join Date: Mar 2008
Posts: 4
Priyadharshini.s is on a distinguished road
Can u please give the same code to implement the function - encrypting and hashing etc
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 04-02-2008, 01:36 PM
Member
 
Join Date: Mar 2008
Posts: 4
Priyadharshini.s is on a distinguished road
sorry! sample code
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 04-02-2008, 01:54 PM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
sanjeevtarar is on a distinguished road
use SHA-1
Hi..

you can use SHA-1, SHA-2, MD-5 etc. to encrypt password.
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 04-02-2008, 01:56 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,028
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Sorry I don't have a sample code. But the javax.crypto package included all you need.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
(Close on September 4, 2008)

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Password System help quickfingers New To Java 1 06-23-2008 07:18 PM
how to change password in regular intervals mohan404 Advanced Java 4 04-08-2008 12:46 PM
add password to folder ismailsaleh AWT / Swing 1 01-08-2008 06:46 AM
Problem with a password saytri New To Java 2 12-27-2007 12:06 PM
class wordprocessor with spellchecking functionality manuniyi AWT / Swing 1 12-25-2007 06:32 AM


All times are GMT +3. The time now is 08:28 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org