Electronic safes are all battery powered with some safes offering a back up key for use when the internal battery needs changing. Most keypads have batteries stored within the keypad so offer very easy access to changing the battery when the energy has run out.