could You Elaborate Just a little more on exactly what you are trying to get done here? You want to store the passwords in a textfile (or database) with the username and encrypted password?
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
So, You don't want the program to create a hash... you want it to create encrypted data. (a hash is an encrypted string [like a password], that CAN NOT be decrypted). Also, I'm just curious as to the format of the password file (why you are using that method) instead of the traditional standard method? I'll send you the code to do what you want when I get home (I'm working now), but I'm just curious as to the reasons why you chose A) to decrypt instead of hashing B) using that file format.
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
Actually,
I wasn't referring to an access database (or even a database of any kind) so much as I was refering to the setup of your flat-file password file. You have it setup very similar to an .ini file. while this is doable, this is also a lot more difficult to work with in code. The Linux Password File (and most other password files [including flat files]) are setup in a fashion similar to: username:password
The : doesn't have to be the delimiter, anything can be really, but this makes coding a little easier (by way of arrays, with the split function). As for using your own function for encrypting the strings.... that too isn't going to be very secure. This is becuase in order to decrypt the strings, you have to have something constant. Perhaps considering hashes would be a better solution, or look for an activeX control for using PGP, or blowfish. I'll still help you either way, but for security basis, you may want to look into something like hashes, or pgp or blowfish.
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215