Password Validation based on the frequency of occurence

Hi all,Can anyone give some idea on How to validate the password based on the frequency of occurence?The requirement is like this:The password can not be the same as the last 20 used passwords for the same user,Waiting for the reply
[267 byte] By [JITHENDRAa] at [2007-11-27 0:58:04]
# 1
Err... - keep a record of the last 20 passwords used and don't allow the user to use any one of them!
sabre150a at 2007-7-11 23:31:48 > top of Java-index,Java Essentials,Java Programming...
# 2
Can you be more specific on the idea given technically
JITHENDRAa at 2007-7-11 23:31:48 > top of Java-index,Java Essentials,Java Programming...
# 3
> Can you be more specific on the idea given technicallyHave you tried to implement something? Where did you get stuck?You'd better ask a more specific question if you want a specific answer.
prometheuzza at 2007-7-11 23:31:48 > top of Java-index,Java Essentials,Java Programming...
# 4

> Can you be more specific on the idea given technically

What am I missing? Store the last 20 passwords and the date of creation in a database. Before you allow a new password, check to see if it is already in the database. Once you have accepted a new password then update the database.

sabre150a at 2007-7-11 23:31:48 > top of Java-index,Java Essentials,Java Programming...
# 5
Thanks a lotActually i want to do it without creating seperate table in the database to store the password history.i already did by creating a table but trying to do find out whether there is any other way witout creating table in the db.Thanks
JITHENDRAa at 2007-7-11 23:31:48 > top of Java-index,Java Essentials,Java Programming...
# 6

> Thanks a lot

> Actually i want to do it without creating seperate

> table in the database to store the password history.

>

> i already did by creating a table but trying to do

> find out whether there is any other way witout

> creating table in the db.

>

> Thanks

Serialize the passwords (or their hash):

http://java.sun.com/developer/technicalArticles/Programming/serialization/

prometheuzza at 2007-7-11 23:31:48 > top of Java-index,Java Essentials,Java Programming...
# 7
I saw the link given by you Its informativeBut if possible can give simple logic how to do this
JITHENDRAa at 2007-7-11 23:31:48 > top of Java-index,Java Essentials,Java Programming...
# 8
> I saw the link given by you > Its informative> But if possible can give simple logic how to do thisRead. The. Link.Simple enough?
prometheuzza at 2007-7-11 23:31:48 > top of Java-index,Java Essentials,Java Programming...
# 9
Ok Thanks a lot I will go completely thru the link
JITHENDRAa at 2007-7-11 23:31:48 > top of Java-index,Java Essentials,Java Programming...
# 10

> Thanks a lot

> Actually i want to do it without creating seperate

> table in the database to store the password history.

>

> i already did by creating a table but trying to do

> find out whether there is any other way witout

> creating table in the db.

I really must be missing something. You have to store the passwords (or at least a hash of each of them) somewhere and if you already have a database then why not there? If you don't, how are you going to know which ones have been used.

I don't see that serialization will help.

Message was edited by:

sabre150

sabre150a at 2007-7-11 23:31:48 > top of Java-index,Java Essentials,Java Programming...
# 11

> > Thanks a lot

> > Actually i want to do it without creating seperate

> > table in the database to store the password

> history.

> >

> > i already did by creating a table but trying to do

> > find out whether there is any other way witout

> > creating table in the db.

>

> I really must be missing something. You have to store

> the passwords (or at least a hash of each of them)

> somewhere and if you already have a database then why

> not there? If you don't, how are you going to know

> which ones have been used.

>

> I don't see that serialization will help.

>

> Message was edited by:

> sabre150

I think Serialization was proposed in case it was storing them specifically in the DB that was the hang up (as opposed to storing them in general)

tsitha at 2007-7-11 23:31:48 > top of Java-index,Java Essentials,Java Programming...
# 12

> ...

> I think Serialization was proposed in case it was

> storing them specifically in the DB that was the hang

> up (as opposed to storing them in general)

I thought the OP said he didn't want to store them in a DB. Now that I read back, I see that the OP wrote s/he didn't want to create a table [in the DB] for it.

Guess I was a bit fed up with the OP pleas for "more details", that I didn't really read his posts... Sorry about that (to the OP as well of course!).

; )

prometheuzza at 2007-7-11 23:31:48 > top of Java-index,Java Essentials,Java Programming...
# 13
Thanks a lot for the help by all members
JITHENDRAa at 2007-7-11 23:31:48 > top of Java-index,Java Essentials,Java Programming...