Safes that have an electronic locking mechanism might be capable of having the solenoid defeated by a magnet.