Added encription algorithm