I don't think the one in the original pic is flanged.
It's a rim sashlock
"rim" means it's fixed to the surface of the door (not morticed into the edge)
"sash" because it has both a knob-operated latch, and a key operated bolt.
it it just had the key-operated bolt it would be a rimlock
if it just had the knob operated latch it would be a rimlatch
Mostly the ones you see are cheap rubbish, intended for holding a shed door closed in light winds, but will not withstand a burglar or a determined toddler.
Some strong rimlocks are still made, they are used on the doors of utility cabins and substations.
union make some adequate ones, under the "Wellington" name, suitable for internal doors.
a decent range is here
Some are sold under the "Marston" name, but they all work on the same key, so not very secure. They are made so that the Fire Brigade can open all such doors, for fire escapes or waterpipe cabinets.