Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 1st, 2003, 05:33 AM
benos benos is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 233 benos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Article Discussion: Password Encryption: Rationale and Java Example

If you have any questions or comments on this article then please post them here.

This forum post relates to this article

Reply With Quote
  #2  
Old November 26th, 2003, 04:37 AM
cck_andy cck_andy is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 1 cck_andy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How to handle "forgot password" functionality

Dear Sir,

I would like to ask how to handle "forgot password" functionality in the case as you now cannot simply send a password to the user's email address, according to your article <Password Encryption: Rationale and Java Example>.

Then can I still use the 1-way hash function for the message?
And would you give another Java Example for that case?

Thank you

Reply With Quote
  #3  
Old May 31st, 2004, 08:53 AM
smachary smachary is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 smachary User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Need to decrypt the encrypted password

My requirement here is a little different. I have to store db passwords in a file and want them encrypted. I am able to encrypt the password using this method , but i need to decrypt the password and use it for connecting to the database. Can someone please help me in this regard.

Reply With Quote
  #4  
Old September 2nd, 2004, 11:36 AM
Benjamin Podszu Benjamin Podszu is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 1 Benjamin Podszu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Singleton ?

I really liked this article and adopted most of it for my current project.
Just one thing seems odd:
Are you sure you didn't mess up the singleton pattern?

You use
Code:
 public static synchronized PasswordService getInstance()
{
  if(instance == null)
  {
	return new PasswordService();
  } 
  else	
  {
	return instance;
  }
}
 


If I don't miss something obvious this would allow an arbitrary amount of instances - since you never assign instance. I'm using somthing like this:

Code:
 public static synchronized PasswordService getInstance()
{
  if(instance == null)
  {
	 instance = new PasswordService();
  } 
  return instance;
 }
 


Well - anyway: Nice job, thank you.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Article Discussion: Password Encryption: Rationale and Java Example


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT