5

I'm new to PostgreSQL and never worked with encryption. I read some links about encryption in PostgreSQL, like this one, but I'm a little bit confused about what it wants to say (or what I understand:)). Can you guide me with some thoughts or links in this problem?

Thanks.

1
  • Why not buy a book about encryption first? I've downvoted this message for the simple reason that it is way too open. Commented Dec 7, 2011 at 10:53

2 Answers 2

8

Look into the pgcrypto addon. Note that db-level cryptography is tricky. You have key management issues that are not trivial to resolve. In general if you really need this, it is probably worth hiring a professional consultant to do some code review and another one to provide some design review ahead of time.

In general, I don't recommend doing all your encryption in the db at present unless it is required due to regulatory or similar regimes.

Sign up to request clarification or add additional context in comments.

Comments

-7

You can encrypt data by using md5 ex like md5(your colunn name)

1 Comment

MD5 is not encryption. It's a hashing function, and a poor one by today's standards.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.