how to install pgcrypto - Mailing list pgsql-general

From Ze Victor Harry
Subject how to install pgcrypto
Date
Msg-id CAPR6t4=S7rK9RyVAitzF2HD-RDCjFJN0+4zUViBt_vx5iLM5Ow@mail.gmail.com
Whole thread Raw
Responses RE: how to install pgcrypto
Re: how to install pgcrypto
List pgsql-general
hello again I have a small problem here can someone tell me briefly how to do it? I am getting this error 

When I give ant fresh_install it gives error PostgreSQL 'pgcrypto' extension installed /up to date? False (not installed) Create extension pgcrypto.

I have tried to look up for solutions and they all say I have to run a command 
# Login to your "dspace" database as a superuser
psql --username=postgres dspace
# Enable the pgcrypto extension on this database
CREATE EXTENSION pgcrypto;
 but where I got confused is from where do I run these commands.is it from cmd? or in pgadmin query tool? I need clearly articulated  steps

pgsql-general by date:

Previous
From: Richard Schmidt
Date:
Subject: FW: Pg_rewind cannot load history wal
Next
From: "Charles Clavadetscher"
Date:
Subject: RE: how to install pgcrypto