Skip to content

On Subsribe Decryption not wroking in net framewrok #59

@KuwarPratapSingh

Description

@KuwarPratapSingh

Dear Team,

Can someone help us on below problem getting at the time of subscribe .

What key should we use for decrypt the encryption get from on subscribe .

Also do you have any utility in dot net framework .

Error :-
Invalid algorithm specified.

private ECDiffieHellmanCng LoadPrivateKey(string encPrivateKey)
{

        byte[] privateKeyBytes = Convert.FromBase64String(encPrivateKey);
        CngKey cngKey = CngKey.Import(privateKeyBytes, CngKeyBlobFormat.Pkcs8PrivateBlob);
        return new ECDiffieHellmanCng(cngKey);

 
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions