Electronic 12V Solenoid Latch Lock Catch Door Electro-magnet Release Slant Slug

This is a great quality compact electric lock. When the coil is energised, the slug is pulled into the center of the coil. Normally the lock is active so you can't open the door because the solenoid slug is in the way.

eBay