Decrypting FRMPayload

I need some helping hand regarding decrypting FRMPayload from the loraserver_ns database… i am getting the hex data(encrypted) from the database(frame_log table) … how do i decrypt the the payload. any articles or links??

https://forum.loraserver.io/t/receiving-decrypted-device-data-frmpayload/501