This is a set of door knob and latch combo specifically designed for Prusa and Prusa Mini enclosures sold by Printed Solid:
https://www.printedsolid.com/products/next-gen-safety-enclosure-for-prusa-mini
https://www.printedsolid.com/products/next-gen-safety-enclosure-for-prusa-style-printers
They may fit other enclosures but these two enclosures above is what I designed these for and tested on.
Fusion 360 file is included for customization.
I printed these with ABS but other filaments should also work. Screw the two pieces together through the pre-cut hole in the door, adjust tension as needed.
The author marked this model as their own original creation.