A shift resistant encoding in a rotor system