This cipher finds each input character in the Public Key, calculates a shift using the formula (where x = character position: 1, 2, 3...), then moves right (positive result) or left (negative result) through the Public Key.
To encrypt or decrypt your message: