For that purpose, the object of the invention is a device for locking and unlocking any member and of the type comprising at least one bolt slidably mounted within a body or casing and actuated by an electromagnet allowing this bolt to co-operate or not with a keeper-like notch or the like formed in the said member, characterized in that it comprises a second electromagnet co-operating with the ot