M
M
mihaildemidoff2011-01-07 19:09:18
Programming
mihaildemidoff, 2011-01-07 19:09:18

Format of data storage in the program?

I decided to write a password store for myself (just out of interest). I have never dealt with the development of such applications, so the following question arose.
How to organize the storage of encrypted data? Random access to data is desirable.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
G
Gribozavr, 2011-01-07
@mihaildemidoff

XML or sqlite. The simple text format presented above will limit you to a one-line description or having to come up with your own escape sequences. And when you solve this problem, you end up with another under-XML (which is not needed).

D
dalamber, 2011-01-07
@dalamber

Somehow I used the KeePass tool for a long time - all entries were stored in one * .key file. It was very easy to carry it with you everywhere.
You can come up with your own format: CATEGORY | DESCRIPTION | LOGIN | PASSWORD. Store everything in a file and encrypt it with AES/Blowfish etc. This is the easiest way.
It is possible to consider a variant with a DB. But since you write for yourself and just out of interest, I think this is redundant.

L
lolopolosko, 2011-01-07
@lolopolosko

I once wrote for myself, also a program for storing passwords.
MD5 and everything else did not use. I decided to encrypt the data using the Vigenère Cipher.
You only need a key and a table to create. Well, no more problem.
Good luck writing the program!

A
andrew_tch, 2011-01-09
@andrew_tch

see the organization of the same storage in kde - kwallet:
utils.kde.org/projects/kwalletmanager/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question