If you have put your locks in the moisture , it will surely going to rust. Also once it rusted the best way is to replace the lock by hiring a locksmith or do its coating with some paint or oil so that it will not come in contact with the rust again and place the lock at moisture free place.