implemented a basic dict pwd generator