Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 5 down vote accepted

Use bcrypt.

http://codahale.com/how-to-safely-store-a-password/

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
2  
@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

 
discard

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.