WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sony's recent security "holes" showed how unsafe it can be to store data unencrypted. As some of you may know, I 'm working on re-releasing the free CRM theme Driftwood.

What is the most secure way to store sensitive (ie non-public information) post meta in the database?

share|improve this question
Could you be more specific about the type of data stored? – mfields Jun 23 '11 at 15:36
It could be email, phone numbers, or in some cases social security numbers. The new system allows for the site admin to store any text/media they want about/for a contact. – mattrepublic Jun 23 '11 at 15:41
up vote 5 down vote accepted

Use bcrypt.


share|improve this answer
Any good resources for how to do this in php or better yet hooking into WordPress? – mfields Jun 23 '11 at 16:01
@mfields - gist.github.com/972386 bcrypt usage in PHP – Brady Jun 23 '11 at 17:24
Awesome! Thank you! – mfields Jun 23 '11 at 17:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.