Results 1 to 11 of 11
Thread: password manager in another way
- 12-01-2010, 06:54 PM #1
Member
- Join Date
- Dec 2010
- Posts
- 5
- Rep Power
- 0
password manager in another way
Hi everybody I'm new in this forum , hope my post is in the right section :)
I' ve started a program with the idea to create a simply password manager , using just files .txt to store the data but now I've realized that is useless, cose everyone using the pc can see those files where usernames and passwords are stored just opening them. So I was thinking a solution for the security of those files , anyone can give me an idea ? (even a different way to do a password manager) I know that one solution can be the use of a DB but I think I'm not ready to use them ..thanks
- 12-01-2010, 09:56 PM #2
Member
- Join Date
- Dec 2010
- Posts
- 13
- Rep Power
- 0
I suppose one simple method would be to use some hash function to hash the password (E.g. MD5 or SHA1). You then store the hash together with the username. When the user enters the password, just run the hash on the password to see if it matches the one in the text file.
- 12-02-2010, 08:38 PM #3
Member
- Join Date
- Dec 2010
- Posts
- 5
- Rep Power
- 0
your solution is about the security inside the program , I was talking about the security outside the program . For example a person using my laptop that search for .txt files can find the data where the pass are stored , just opening those .txt files crated by my program .... is that more clear? :confused:
- 12-02-2010, 08:46 PM #4
Member
- Join Date
- Dec 2010
- Posts
- 13
- Rep Power
- 0
Well actually, your text file would keep only the hashed version of the password (together with the username). It should not be possible to recover the actual password from the hash. When you run the program, it should hash the password that the user inputs and compare it with the stored version of the hash. Thus you never store the password in its "plaintext" form.
Hope that makes sense. :)
- 12-02-2010, 08:48 PM #5
It's a password manager, which means the hash has to be decryptable (so that when you provide a website, or whatnot, it can fetch the username and password for the user). MD5 and SHA1 are not. The OP would probably want to come up with his own encryption method for this reason.
- 12-02-2010, 08:53 PM #6
Member
- Join Date
- Dec 2010
- Posts
- 13
- Rep Power
- 0
Oh, oops haha OK, my bad :)
- 12-02-2010, 08:58 PM #7
Member
- Join Date
- Dec 2010
- Posts
- 13
- Rep Power
- 0
Oh, well then I suppose one could encrypt the text file (maybe using gpg --symmetric?) with a master password. Then when one needs to retrieve the text file, just decrypt it with the master password.
- 12-03-2010, 10:51 AM #8
Member
- Join Date
- Dec 2010
- Posts
- 5
- Rep Power
- 0
I had a look to gpg --symmetric you mentioned and it seems to be something external to the program.The solution is good for myself but what if I give the program to a friend ? He have to use gpg with my program isn't it ? :confused: If the solution using .txt files is too hard any other idea how to store my passw will be appreciated, when I was starting the program somebody advice me to use XML is that a good idea ? I dont have used XML before so I don t know if is good or not for my passw menager..
- 12-03-2010, 10:59 AM #9
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,589
- Blog Entries
- 7
- Rep Power
- 17
When people rob a bank they get a penalty; when banks rob people they get a bonus.
- 12-03-2010, 12:14 PM #10
Member
- Join Date
- Dec 2010
- Posts
- 13
- Rep Power
- 0
I'm actually not too familiar with Java but a little familiar with crypto.. But how about this example code:
http://www.example-code.com/java/fileEncryption.asp
I think it suits your purpose for embedding some encryption within your program without focusing on the details of the encryption. Hope it helps :)
- 12-04-2010, 07:59 PM #11
Member
- Join Date
- Dec 2010
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
Password
By Adomini in forum New To JavaReplies: 3Last Post: 09-20-2010, 10:43 AM -
'Password' help
By iWonder in forum New To JavaReplies: 20Last Post: 12-17-2008, 10:05 PM -
how to check password for 3 times enterd wrong password
By sk.mahaboobbhasha@gmail.c in forum New To JavaReplies: 2Last Post: 11-14-2008, 07:53 PM -
how to check password for 3 times enterd wrong password
By sk.mahaboobbhasha@gmail.c in forum Java ServletReplies: 0Last Post: 11-14-2008, 01:22 PM -
How to check password of a jsp/html with the password of Database(mysql) #1
By sk.mahaboobbhasha@gmail.c in forum Java ServletReplies: 2Last Post: 11-14-2008, 01:11 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks