The SecureIt Falcon Underbed Safe has an electronic lock
It has a push button electronic lock. It is made to easily hold an AR15 platform firearm. It even holds the AR15 firearm with the optics attached and a thirty round magazine in place. It weighs 46 lbs. and it measures 47-1/4"" x 13 x 6-1/2"". You can also use the SecureIt Falcon Underbed Safe in a vertical position and when use this way it will hold two rifles. It comes ready to assemble and has SecureIt Tactical's patented saddle system to hold your weapon. The SecureIt Falcon Underbed Safe is currently in testing for California DOJ Compliance. The following is included for California Residents: WARNING: This gun safe does not meet the safety standards for gun safes specified in California Penal Code Section 12088.2.1, which mandates that all firearms sold in California be accompanied by a firearms safety device or proof of ownership, as required by law, of a gun safe that meets the Section 12088.2 minimum safety standards developed by the California Attorney General."
Also consider buying used gun safes to store your valuables.