?
Solved

Accessing WordPress MD5 cookies for CF User Authentication

Posted on 2011-03-23
3
Medium Priority
?
620 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 52

Expert Comment

by:_agx_
ID: 35204182
(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
ID: 35205931
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 2000 total points
ID: 35206010
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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

765 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