Postgresql md5 encryption

Asked

Viewed 1,359 times

4

I am creating a table using Postgresql and there will still be a password field with MD5 encryption. What would the syntax look like in it? Because I have more contact with Mysql than Postgresql.

1 answer

4


Utilize:

MD5('String')

For example:

INSERT INTO users (username, password) VALUES ('Luiz', MD5('Segredo'));

Browser other questions tagged

You are not signed in. Login or sign up in order to post.