Get locking code.