How do I go about encrypting "username" so that it is not saved in plain text format in database. I was looking for a module that does this, but couldn't find one.
Would adding logic (hook_user_presave()
and hook_user_load()
) as described in How can you encrypt the username and email address in the database, to protect against emails being stolen from a compromised database (D7) be sufficient? The accepted answer says:
This is just my point of view, but if you want do it what you can use this module http://drupal.org/project/aes and with some user hooks, such as
hook_user_presave()
andhook_user_load()
.
user_is_blocked
). This may be baked in pretty deep.