start of encryption function

beginning of encryption function, I still need to add s-box and pLayer
elements.