theideabulb
asked on
Accessing WordPress MD5 cookies for CF User Authentication
I need to use WordPress for the content management side of a site, but there is still a Coldfusion side that would like to access the wp_users table so that there doesn't need to be another registration. Does anyone have any info on how to decrypt what I believe is a MD5 hash with some other SALT encryption. Honestly I am not sure, this is my first time using Wordpress so its a world of learning I like it though :).
Any wisdom would be appreciated.
Any wisdom would be appreciated.
ASKER
I guess I could rephrase it to ask, how can I access the cookie on the coldfusion pages so that a registration is not needed. They worked out a handoff between wordpress and bbpress, so I am wondering if coldfusion will be able to look for that cookie so that I can query the users table and use that information on the coldfusion side.
From bbpress
/**#@+
* Authentication Unique Keys.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/bbpress/ WordPress.org secret-key service}
*
* @since 1.0
*/
define( 'BB_AUTH_KEY', 'put your unique phrase here' );
define( 'BB_SECURE_AUTH_KEY', 'put your unique phrase here' );
define( 'BB_LOGGED_IN_KEY', 'put your unique phrase here' );
define( 'BB_NONCE_KEY', 'put your unique phrase here' );
From bbpress
/**#@+
* Authentication Unique Keys.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/bbpress/ WordPress.org secret-key service}
*
* @since 1.0
*/
define( 'BB_AUTH_KEY', 'put your unique phrase here' );
define( 'BB_SECURE_AUTH_KEY', 'put your unique phrase here' );
define( 'BB_LOGGED_IN_KEY', 'put your unique phrase here' );
define( 'BB_NONCE_KEY', 'put your unique phrase here' );
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
FYI: If it is MD5 you can't decrypt it. MD5 is one way only. ie Not reversible like AES. You can hash a value and compare it to another hashed value. But you can't decrypt it. MD5 is one way only.