Added functionality to encrypt method, not complete yet though..