In PostgreSQL there are two main password encryption algorithms : md5 , SCRAM-SHA-256. its worth mentioning that SCRAM is more secure of course than md5 however, you need to check application driver compatibility. In postgresql.conf file, the password_encryption parameter is set to md5 by default. I will simulate creating a new account called “emad”: create …