Solved

Accessing WordPress MD5 cookies for CF User Authentication

Posted on 2011-03-23
3
600 Views
Last Modified: 2012-06-27
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.
0
Comment
Question by:theideabulb
3 Comments
 
LVL 52

Expert Comment

by:_agx_
Comment Utility
(no points ...)

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.
0
 

Author Comment

by:theideabulb
Comment Utility
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' );
0
 
LVL 11

Accepted Solution

by:
Brijesh Chauhan earned 500 total points
Comment Utility
You can just use COOKIE.COOKIENAME to access the cookie in CF, I think if they are created by same domain, you should be able to access it.

Say, you create a COOKIE in PHP (WORDPRESS),

let us assume the cookie name is 'TestCookie',

in PHP ->

$value = 'databaseName';
setcookie("TestCookie", $value);

then you can access it in CF by #COOKIE.TestCookie#  -- this would return 'databaseName'.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article  is about submitting  form through  ColdFusion.Ajax.submitForm to the action page and send a response back in JSON format which later can be decoded using ColdFusion.JSON.decode. By this way you can avoid the usual page refresh for subm…
Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now