performing encryption with the same length key multiple times