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
Post a Comment