Support the ongoing development of Laravel.io →
Authentication Security Database

Hi All,

I have a postgresql database with md5 authentication enabled. I can login to my database from UNIX socket with out a problem.

My Laravel database connection also works fine with a plane password authentication. However I don't want plane passwords stored in my .env file in my production environment or transported via network. I couldn't find any resource on how to use encrypted passwords in my connection string.

Can anyone describe a how to or point me to a resource on how to go about this? I'd appreciate this so much.

Last updated 2 years ago.
0

don't use md5. if you're connecting to a local server there's no security risk in storing password on the .env as long as the server is secured. If you're connecting to a remote database connect over a SSL connection.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

asteway asteway Joined 26 Jun 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.