added reference to stack overflow question where I found the encryption class
didn't like how we popped off first two elements in array, made it clearer