![]() |
Encrypting data already stored
Hi everyone,
I was wondering does anyone know of a way to encrypt database that is already stored in the database? I am using SHA1 if it matters. |
A database that is already stored in a database? Do you mean data that is already stored in a database? If so:
Code:
UPDATE table SET field=SHA1(field) WHERE 1 |
Yeah that is what I mean. Sorry was very tired, but that is all I have to do?
|
thanks killer it worked on the first try.
|
Not to nit-pick but encryption is a two-way process, whereas SHA1 is a process that's irreversible and so by definition not a method of encryption but a hash method.
I don't mean to appear pompous but if you're a developer then details, particularly, when communicating technical details is extremely important. It's something thats been really bothering me at work -.- |
yes, encrypting database are stored in the database but it stored in the encrypt form.
|
| All times are GMT. The time now is 11:07 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0