pg_md5
Options
- 
    
     -p
    
    
--prompt - 
    
Prompt password using standard input.
 - 
    
     -m
    
    
--md5auth - 
    
Produce md5 authentication password.
 - 
    
     -u
     
      
       your_username
      
     
    
    
--username= your_username - 
    
When producing a md5 authentication password, create the pool_passwd entry for your_username .
 
Example
Here is an example output:
pg_md5 -p
password: [your password]
    
 
or
./pg_md5 foo
acbd18db4cc2f85cedef654fccc4a4d8