I read that there are datatypes which do encryption so passwords are secured in your database.
I use at the moment varchar to store passwords. I have had the idea that I should somehow apply a SHA-512 function to the password and put that data somewhere such that the plain text password is removed.
However, the datatype in Perl suggests me that there are a better way in PostgreSQL than varchar.
What is the datatype for a password in PostgreSQL?