added encryptDigit method to Rotor