I'm working on an online app, for a client, that tracks employee time spent on jobs. I'm storing all info in a MySQL database. I have a table that has all the employee info, including pay rates.
I need a way to hide the pay rate for employees from their IT guy. The site is going to be hosted on one of their servers, so if he tries to find it, he'll have access to the MySQL username & password. So I was thinking that I could use SHA1 or MD5 to encrypt the pay rate, but then when I need to retrieve that info to perform a calculation (time x pay rate), then I don't know how I could convert it back to a number.
I was thinking that I could do some kind of cryptic calculation when saving the amount, like multiply by the employee id number, and then divide by 4 or something like that, but it seems that it would be pretty easy to decode that if he tries.
Thanks in advance for any suggestions.