implemented password generation similar to native fluxbb