Escape password to avoid confusing bash

I happened to use a password with paranthesises in it, and it didn't play nice with bash. I first tried using single quotes for hard escaping but I got confused about where in the code I could insert that.