Seperated the encryption functions into thier own library