Tested encrypt2 and decrypte2 function to handle arbitrary length of input strings