|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Article Discussion: Password Encryption: Rationale and Java Example |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|