Welcome Guest, Not a member yet? Register   Sign In
How to store password
#1
Smile 
(This post was last modified: 07-26-2015, 02:50 PM by ignitedcms.)

Hi guys,

I've just updated my password hashing to now use password_hash() instead of crypt() but I have another question. Thanks to narf and mwhitney. Big Grin


In my CMS I'm sending email via SMTP or phpmail.

How do I store the SMTP password? Obviously I can't hash it as I would need to get the password in plain text to send the email so should I encrypt it and store in the database. Storing it as plain text just seems stupid? What is the best practice here? I never really thought about this one.
Practical guide to IgnitedCMS - Book coming soon
Reply


Messages In This Thread
How to store password - by ignitedcms - 07-26-2015, 02:39 PM
RE: How to store password - by ivantcholakov - 07-26-2015, 03:48 PM
RE: How to store password - by ignitedcms - 07-26-2015, 04:17 PM
RE: How to store password - by ivantcholakov - 07-26-2015, 05:10 PM
RE: How to store password - by mwhitney - 07-27-2015, 08:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB