jpwgen is a Java-based password generator that can be used as a command line program or as a library. The implemented functionality resembles the one provided by the popular pwgen program. The basic idea is generating passwords that, although relatively easy to remember, are complex enough for real-life usage. jpwdgen uses regular expressions for checking different types of conditions such as whether a password starts with a symbol or not, with a digit or not, etc. It supports blacklists and different types of secure random generators. As an embedded library, it can be employed in the process of password generation against certain password policies or for password suggestion services.