Safe Locking Mechanism Design