An electromechanical locking mechanism provides a plug with a rekeyable primary lock mechanism such as a tumbler stack, an electromechanical operator such as a solenoid or a motor, and an electronic circuit having a memory, or an electronic memory and an electronic logic stage, controlling activitiation and operation of the electromechanical operator, contained entirely within the plug. The margin may be along the perimeter edge of the forming panel or along an opening interior to the perimeter of the forming panel. B) Fragmenting the multiple-dimensional spaces into order spatial ranges and assigned each of the spatial ranges with a sequential spatial range-numbers. The blade pin can be displaced radially inwards.