The problem with pgcrypto is the fact that in the logs there's the password? that's it? I would like to see the talk to get a better understainding of the whole message, is it available somewhere?
Don't use pgcrypto. Use libsodium to encrypt in your application.