I find jabber to be a fantastic tool, but it worries me a little that my password is written in plain text in my init file.
Is there a way to configure my jabber login credentials without writing them in plain text?

Just to be clear, I don't want to be asked for a password either. So the solution would need to hook into some external keyring/database or just do some encrypting to obscure the password.

Ideally, the solution would be OS independent, but my priority is getting it to work on Linux (with gnome) which is where I use jabber the most.


See Emac's auth-source. You may discover that it is already wired into the default authentication of the tool your using, for example ERC uses it. I wrote a bit about it in this blog post.


I use pass to store my passwords, and a lisp wrapper to set the value appropriately:

(require 's)
(defun my-password (pass)
  (s-trim (shell-command-to-string
            (concat "pass show " pass))))

(setq my-jabber-password (my-password "Personal/jabber"))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.