Implemented code for decrypting the beacon data.