Move password generation to the background script.