Reputation: 327
I am creating an api that would allow users of my wordpress website to also login from a mobile device (I am making use of fast-api). but I cannot figure out how to hash the password from python so that is is compatible with wordpress.
I am making use of passlib.phpass
.
I have access to my wp-config.php
file and I can see some fields such as:
define( 'AUTH_KEY', '***' );
define( 'SECURE_AUTH_KEY', '***' );
define( 'LOGGED_IN_KEY', '***' );
define( 'NONCE_KEY', '***' );
define( 'AUTH_SALT', '***' );
define( 'SECURE_AUTH_SALT', '***' );
define( 'LOGGED_IN_SALT', '***' );
define( 'NONCE_SALT', '***' );
how can I setup the password hash so it is compatible with the one on wordpress.
I'll really appreciate any help on how to tackle this issue.
Upvotes: 0
Views: 27