Add 'gen-password' API (a secure password generator).