Encrypts a string of data numerous times following a specified pattern.