We are struggling in the encryption where our encrypted data is not displayed in the PHR mobile app. We tried most of the solutions given in the thread but didn’t work. We work with PHP but as our encrypted data in PHP was not displayed in the PHR app so we switched to Java.
We also strugged with java and issue remained as it is that our data is not displayed in the PHR app. I would really appropriate if some one from the NDHM team looks into it in more detail instead of giving link to Java snippet which is not working for us.
We tried following snippets. I have embedded the request that we have sent and also the receiver public key and nonce that we got:
Here are URL to the snippets:
- Java snippet as it is: https://paste.laravel.io/3038ac7d-aedd-441d-a100-f3108e1b9527
- Java snippet as suggested by this feedback: https://paste.laravel.io/cafa7675-d32f-477c-89df-17765531e82d
- Java snippet with this feedback: https://paste.laravel.io/35039938-50f7-4173-abde-f9c9cb2afca3