Nut & Bolt dilemma???????

Back in the day people would heat up horse shoes red hot and drop them in oil. It gives them a black finish and keeps them from rusting. I'm not sure how good it'd be for the integrity of the bolt to heat it up red hot though. Just a thought.