Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The fundamental issue is that you should not be exposing the encryption keys to the database. If you're using pgcrypto then you're issuing SQL statements in the database with the key. You should do your encryption client-side so that the key is never passed over the wire at all.


That said, pgcrypto is still useful, you can compute hashes or generate UUIDs with it.


The point was that you probably shouldn't use it for data encryption in the DB and think the server doesn't have the keys.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: