Originally posted by sicarie
i think what he wants to do is to use a symmetric algorithm like AES or DES for encryption/decryption
now what he wants is the Password which he could convert to a 16 byte key, using his own algorithm.
I think you might have thought about some way to create a 16 byte key from the password.
but now the problem is that you need the password from OS, which i am not sure you will be able to get.
write a test application to read the file directly to retrieve the Hash of the Password.
you are done if you are able to do so. i am not sure you will be getting the password directly using some win32 API, because then it doesnt serve the purpose.
what i dont understand is that, what will the HOD, Chem lab will do to decrypt the files, would he be having the list of passwords of all researchers, or would he be calling them all the time.
either way, i would prefer them to enter a password for your application, and you can cache that password through out the application to avoid multiple entries.
this would be the best way, doing so you can have your own constraints on the password to make it strong, like alphanumeric characters, minimum 8 chars etc...
Comment