Based on original Roundcube password plugin with some fixes and extras