In order to find out the password encryption method used by PostgreSQL, we can look through PostgreSQL’s conf file, which are located in either of the following locations:
/var/lib/postgresql/data/postgresql.conf
OR
/etc/postgresql/postgresql.conf
You can also find out through psql using the following:
SHOW password_encryption;