Click here to Skip to main content
15,919,341 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello All,

I have to create a form for changing existing password of a user to different.So i need a class to do that especialy for password.Password class contains password string and new password string? or only it contains password string.Which one is good.object passing or using one password object storing and passing two parameters to server.Which one is good?Can any one tell.

Regards,
Shameen
Posted

1 solution

A password class should not contain any strings: it could accept a string (or a number of strings to include userID and /or salt value), and return a boolean match / not match, and it could return a hashed value suitable for database storage - but is should not store a string.

There is some info on password storage here: Password Storage: How to do it.[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900