Password protect bootloader

I’d like to make it so that to flash any new firmware, the pixhawk asks for a password. Is this possible? I was thinking along the lines of adding a password module to the current bootloader code.