Decrypting PHYPayload outside loraserver

Hi,

I’m logging the encrypted data on the gateway, and would like to be able to decrypt it. I have seen this posted on several other topics:

But I’m not familiar with GO. Can I run this locally as a script on my linux machine?

Thank you.

In order to decrypt the device data you need to have the network and the applications keys. So if you have ABP activated devices and you know the keys, you may use them to decrypt messages at the gateway level, but if they are OTAA activated then you’d need to implement a way to ask lora-app-server for those keys in order to decrypt the data.

As for the lorawan package, you may consume it from a Go application to implement the said decription, it is not a readily usable script.

Let’s keep this conversation in: https://forum.loraserver.io/t/manually-decode-phypayload-or-decrypt-frmpayload/209 :slight_smile: