Title: Can I modify &#8220;CheckPassword&#8221; function ?
Last modified: June 21, 2022

---

# Can I modify “CheckPassword” function ?

 *  [deliop](https://wordpress.org/support/users/deliop/)
 * (@deliop)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/can-i-modify-checkpassword-function/)
 * Hi,
 * I have a site with passwords encrypted with SHA-256. The database stores a salt(
   $5$…) and the hashed password (crypt($pass, $bcrypt_salt))).
 * I’d like to migrate to wordpress without asking the users to change their passwords.
   Is it possible to change the “CheckPassword” function in “classphpass.php” and
   change the way the passwords are encrypted ?
    -  This topic was modified 3 years, 12 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
      Reason: removed nsfw

Viewing 1 replies (of 1 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [3 years, 12 months ago](https://wordpress.org/support/topic/can-i-modify-checkpassword-function/#post-15732586)
 * Yes, you can use your own password hashing mechanism in place of the native one
   via [https://developer.wordpress.org/reference/functions/wp_hash_password/](https://developer.wordpress.org/reference/functions/wp_hash_password/)

Viewing 1 replies (of 1 total)

The topic ‘Can I modify “CheckPassword” function ?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [3 years, 12 months ago](https://wordpress.org/support/topic/can-i-modify-checkpassword-function/#post-15732586)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
