As per your query, someone has changed your router password has been changed and you want to enhance the security to make sure it doe not happen in near future. I will discuss some of the troubleshooting technique to achieve this goal. They are fairly easy to understand and follow. So make sure to follow the given instructions carefully:
Step 1: First reset your router since chances are that the intruder who has changed your password may have done some changes to your router settings, so press the "Reset" button at the back of your router for 20-30 seconds to reset your router to factory settings. This will eliminate and wipe out all the changes made to your HP router including the changed password. Also, make sure not to overdo this step as resetting your router for 5-7 times may cause permanent damages.
Step 2: Connect your HP router to your computer using an ethernet cable, one end of the cable goes inside the WAN port while the other end goes inside your computer's ethernet port. Wait for few seconds to let the connection between the two get established.
Step 3: Open your web browser and type in your IP address in the given URL field and hit Enter. This will redirect you to your HP router login portal. In case you do not know your IP address then you can simply google,"My IP address" or "Default IP address of HP".
Step 4: Put "admin" in the username field and leave the Password field blank and hit Enter. Since you have reset your router the default user ID and password will work instead of the old one. This will redirect you to the main settings page of your router.
Step 5: Once on the main page, click on "Advanced Settings" > "Security", under the security section change the encryption of your device to "WPA2" as it is considered to be a government graded encryption type. Below the encryption, you will notice a box by the name of "Pass-key" this is your wifi password, change it to a secure and simple enough to remember and save the settings. A strong password must be a set of uppercase letters, lowercase letters, and numerals.
Step 6: The above methods will help you secure hp router but in case you want to make it impenetrable from outside source, you can use MAC Address filtering. Add the MAC address of the devices you want to grant access to your router under the MAC Filtering option and only these devices will be able to get access to your router.
These methods will surely help you in making your hp router safe and secure against any kind of intruder. Also, make sure to write down your password somewhere so that you can use it later