Request Id in v3

Please explain about request id?
1.What is request id?
2.What kind of encryption will use ?

Please help.

Hi @Akshaya,

Which API are you talking about? Please let us know so that we can check .

Thanks

Sir , i am using v3 api’s to create abha id using AADHAR verification in which one header parameter request id i am asking for request id so please explain about Request id parameter in v3 Api.
What is request id in v3 type api to send aadhar otp.

REQUEST-ID is any unique ID that you are sending to ABDM, mostly a UUID to keep it unique.

You can use any identifier of your choice.

Means i can put any encrypted value in request - ID ?

as long as it is unique in your system.

sir ,
also please provide code for encryption decryption asp.net c# (.net 4.5) v3 api

I am using v3 Api.

using System;
using System.Security.Cryptography;
using System.Text;

public class RSAUtil
{
private static string publicKey = “A”;

public static RSAParameters GetPublicKey(string base64PublicKey)
{
    RSAParameters publicKey = new RSAParameters();
    try
    {
        var keyBytes = Convert.FromBase64String(base64PublicKey);
        publicKey.Modulus = keyBytes;
        publicKey.Exponent = new byte[] { 1, 0, 1 };
    }
    catch (Exception e)
    {
        Console.WriteLine(e.Message);
    }
    return publicKey;
}

public static byte[] Encrypt(string data, string publicKey)
{
    using (var rsa = RSA.Create())
    {
        rsa.ImportParameters(GetPublicKey(publicKey));
        return rsa.Encrypt(Encoding.UTF8.GetBytes(data), RSAEncryptionPadding.Pkcs1);
    }
}

public static void Main(string[] args)
{
    try
    {
        string encStr = Convert.ToBase64String(Encrypt("AC", publicKey));
        Console.WriteLine(encStr);
    }
    catch (Exception e)
    {
        Console.WriteLine(e.Message);
    }
}

}

// Should work for Encryption

thanku sir.
We will try and update you.