[encription] started implementing the encription algorithm.