php - Replacing a plaintext user table with a view -


we inherit things, worse others.

recently inherited user table has plaintext passwords. isn't big deal table connected many webapps -- of can't expect find without them breaking , people complaining first.

i'd encrypt password column without needing modify connection strings or hardcoded sql of these mystery apps. thinking possible authenticate 2 ways replacing table mysql view uses 'or' clause. idea encrypted_sql_check or plaintext_sql_check, plaintext sql check looks md5(plaintextpw, salt) or somesuch, running plaintext submission through crypter salt used , checking match.

i'm not dba though, codemonkey spitballing ideas. feasable? run issues insert/update/etc queries? in other words... can tell me why won't work? database table serve drupal users table, if there's reason throw kink things know.

thanks!

a view in database read-only, yes, run problems when trying update or insert values through such view. working on original table on other hand should work , update view immediately.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -