Decrypt V2 API Payload

For the V2 APIs
Swagger HealthID

  • Sensitive data (Data like OTP, Aadhaar Number, Password, Username, etc) have to be encrypted.
    I am using /v1/auth/cert API for encrypting the payload for V2 API when trying to decrypt it will be the same certificate that is causing the error. What procedure should be implemented for decrypting the payload when acting as an ABHA-SERVICE Body?

@suraj08 / @suraj,

Can you please take this up.

Thanks

HI @Shubhanshu_S @ayadav33

1)/v1/auth/cert


2)/v2/registration/aadhaar/generateOtp

I am using /v1/auth/cert API for encrypting the payload for V2 API Its All Working fine please try again

Thanks
Areeb

what encryption algorithm should we use to encrypt data ?

Hi

For V2 api the encryption can be done using rsa publickey that can be generated in the code itself or do we need to implement the api/cert and the same response that we get from this api be implemented in the code to encrypt?