Solved

Accessing WordPress MD5 cookies for CF User Authentication

Posted on 2011-03-23
3
604 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_
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 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

813 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

18 Experts available now in Live!

Get 1:1 Help Now