Changes methods to accept a rotation argument to allow for proper encryption and decryption.