A locking mechanism for an enclosure. The locking mechanism includes a housing with an outer surface having a first tab fixedly attached to the housing. The housing is adapted to be coupled to a door by pressing the housing through a latch housing of a latching mechanism of the door until the first tab springs out and locks the housing in place in the latch housing. The locking mechanism includes an insert adapted to be positioned through the housing and adapted to be coupled to a flange of the latching mechanism of the door. The insert includes either a handle or a knob. Rotation of the insert rotates the flange to lock the door.