How would someone go about accomplishing this goal?
To travel safely with a razor.
So that you don't accidentally cut yourself when you're reaching into your travel bag, put a binder clip around the blade of your razor.