An Information-Theoretic Account of Secure Brainwallets