How to Clean Brass Hardware to Make It Look Like New
Brass hardware can develop an attractive dark patina over time, which some homeowners enjoy for its antique look. However, even if you like aged brass, there's no reason for it to be corroded or unsightly.
Tarnished brass hardware like doorknobs, hinges, and handles can be challenging to clean. Effective options include Bar Keeper's Friend, a popular cleaning product for brass and other metals like copper and stainless steel, or a homemade cleaner using baking soda and vinegar . These methods help refresh your brass, making it shine without eliminating all of its patina.

Before You Begin
Carefully remove the hardware (doorknob, handle, hinge, etc.), making sure you do not strip the screws or damage the metal. (Unless the spot is small, all hardware should be removed before cleaning.) If the screw slots are plugged with dirt or paint, you may need to scrape out the slots so that the screwdriver can grip the screw. A manual screwdriver works better than a drill driver to back out screws since brass is a fairly soft metal that is easily damaged.
Next, try to identify the type of metal. If it looks like brass, you'll need to figure out if the hardware is solid brass or brass-plated. One simple method is to test with a magnet. Brass is a non-magnetic metal, so if a magnet is attracted to your hardware, it's likely comprised of a thin brass plating over an iron-based metal. In this case, you will need to be extra gentle in your cleaning and polishing to avoid abrading through the brass. If it is solid brass , you will not have to worry as much about damaging the plating with an abrasive cleanser.

Source: https://www.thespruce.com/how-to-refurbish-hardware-2878995