Mi home gateway problem with local area network communication protocol

Hello guys, I read in the instructions (https://louiszl.gitbooks.io/lumi-gateway-local-api/content/device_read_write.html), to encrypt the key, you have to have the token key and iv, and I can not seem to understand where to get the token?

Maybe the official docs are easier to understand?


I would to know where is taken for the token, I just write a plugin separate from the openHab system