I’m using md5 encryption for my company salary data.
That page should only be viewed when user enter correct password. iam storing that encrypted password in database.
while retrieving iam comparing the encrypted password.
Is there any way i can use that password as key?
i want to achieve following
- If the user is saving the salary data, this password hash will encrypt the data
- If the user is viewing salary info, this password should be used to decrypt the data
or do i have to use some algorithm like Triple Des?
Yes, you need to use a (reversible) encryption algorithm, not a (one-way) hash algorithm.