Mobile code protection with Smartcards