That's not going to work.
Someone that wants to interfere doesn't need to have the correct PL/DPL codes to do it. They just need to get enough RF into the receiver to screw things up.
THIS !
If someone wants to secure a repeater, they use full on encryption.
THIS too !
But you could also use authentication without needing secure voice (e.g Motorola RAS, Hytera OTA encrypt, or various trunking flavors as you describe below

Of course, RAS and similar will not work for OP if he is in a "full analog" context...)
BUT (there's always a but...)
As surprising as it may seem... this thing
seems to exist...
At least if you can cope with CCR !
The Retevis (RT27 ?) boasts the so-called "DCS encryption"...
I guess it's a marketing gimmick with either a non standard way of doing DCS (could be simple non "valid/approved" DCS sequences, a modified bitrate or modified FEC...) or just a fixed XOR with standard DCS codes [with others RT27 having the "keystream" (yeah, that's a big word) built-in], a sort of /\/\ Basic Privacy but for DCS maybe ?
It's just me guessing of course (I don't give a *** about CCR), but the function seems to be legit according to others tinkerers who tried to intercept the DCS with scanners & SDR plugins...
Again, this doesn't change the story for OP, because no repeaters (I know of) implements this functionnality, but I allow myself to write this post just for technical accuracy sake, and for the pleasure of having a debate
Bye