Secure explosion-proof function