Title: Password using MySQL password() function
Last modified: August 21, 2016

---

# Password using MySQL password() function

 *  Resolved [roberthuttinger](https://wordpress.org/support/users/roberthuttinger/)
 * (@roberthuttinger)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/password-using-mysql-password-function/)
 * So you have cleverly added support for various versions of crypt, however what
   if the db we wish to auth against is using MySQLs native password() function (
   I know it is not best practice by ANY stretch).
 * Is there a way to set crypt to ‘non’ and perform a custom function? I believe
   MySQL currently performs SHA1 twice, then converts the string to a HEX string.
 * Ideas? Workarounds?
 * [http://wordpress.org/plugins/external-db-auth-reloaded/](http://wordpress.org/plugins/external-db-auth-reloaded/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [roberthuttinger](https://wordpress.org/support/users/roberthuttinger/)
 * (@roberthuttinger)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/password-using-mysql-password-function/#post-4159189)
 * aha, it seems on line 415 I can set my own function! disregard previous question!
 *     ```
       case "Other" :             //right now defaulting to plaintext.  People can change code here for their own special hash
                   eval(get_option('pp_db_other_enc'));
                   break;
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Password using MySQL password() function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/external-db-auth-reloaded.svg)
 * [External Database Authentication Reloaded](https://wordpress.org/plugins/external-db-auth-reloaded/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/external-db-auth-reloaded/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/external-db-auth-reloaded/)
 * [Active Topics](https://wordpress.org/support/plugin/external-db-auth-reloaded/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/external-db-auth-reloaded/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/external-db-auth-reloaded/reviews/)

## Tags

 * [auth](https://wordpress.org/support/topic-tag/auth/)
 * [function](https://wordpress.org/support/topic-tag/function/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)
 * [password](https://wordpress.org/support/topic-tag/password/)

 * 1 reply
 * 1 participant
 * Last reply from: [roberthuttinger](https://wordpress.org/support/users/roberthuttinger/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/password-using-mysql-password-function/#post-4159189)
 * Status: resolved