Add generate_password to shadow module

Generate hashed password for shadow module