opentrace-community / opentrace-cloud-functions

OpenTrace Cloud Functions. Reference implementation of the BlueTrace protocol.
https://bluetrace.io
GNU General Public License v3.0
273 stars 121 forks source link

Decryption Example #28

Open srhise opened 4 years ago

srhise commented 4 years ago

What is the recommended way to decrypt the msg property in the files uploaded by the user? Is there an example of this or a recommended approach?

simonry14 commented 4 years ago

@srhise Please share if you found the solution to this

qtangs commented 4 years ago

We have shared a reference implementation for processUploadedData, you can find the logic here:

https://github.com/opentrace-community/opentrace-cloud-functions/blob/master/functions/src/opentrace/processUploadedData.ts#L24

mkorcy commented 4 years ago

@qtangs using the ref implementation for processUploadedData my archive file and my upload file looks the same, my temp ids are not decrypting to UIDs. Looks like I am successfully getting the secret key, any ideas?

mkorcy commented 4 years ago

disregard, I see now i had to do something with the decrypted data in the data forwarder.