connect the positive battery terminal to the 7805 input pin, the positive usb pin to the 7805 output pin, and connect the negative battery terminal and the usb ground pin to the 7805 ground pin.
The keypad requires a user-created PIN code to unlock, so unauthorized access is out of the question. And with USB 3.0 technology, you get blazing-fast read and write speeds for quick transfers ...
Now, if you want to make a device with a USB-C plug, the wiring is the same. The only difference is that you only need to populate one of the CC pull-downs, and wire up one pair of D+/D- pins ...