This research aims to simulate and analyze a potential parameter of developing the key generation used for encryption in LoRaWAN. Key generation or key scheduling is an important part of the encryption process because in modern security, encryption algorithm will be shared widely so that it can be developed according to standards, and its strength tested, but the cipher key will remain hidden. In the LoRaWANnetwork, key generation is part of Advanced Encryption Standard (AES) encryption embedded in the NwkSKey and the AppSKey. Our research provides baseline information that has the potential to develop the key-generation algorithm used in LoRaWAN. We conduct simulations for gathering field data and then discuss three parameters related to the technical development of key generation: processing time, randomness level and key length. Meanwhile for LoRaWAN, there are two additional parameters that need to be considered: computation resources and battery durability.