Two-way encryption in PostgreSQL version 9.1 database
PostgreSQL's built-in two-way encryption functions are documented here. The functions that come in the encrypt/decrypt pairs are the two-way encryption options.