Implementation of shift cipher