The fact that this is a security device means that it is VERY hard to reprogram on (To stop you copying somebody else's key). Ordinary people cannot do it. You need special equipment.
The usual way of doing it is to go to a Toyota dealer/franchise and to hand over a couple of credit cards.