You can do it through a cloud function putting this:
admin.auth().updateUser('useruid', { password: 'XXXXXXXXX' }