AsymmetricAlgorithm

S-Soft 646 Reputation points
2022-10-04T11:01:47.727+00:00

Hey,

Dim MyAsyAlg As AsymmetricAlgorithm = OriginalCertificate.PrivateKey
'MyAsyAlg >> MyCrypto ??? How

How to assign MyAsyAlg to MyCrypto?
Please advise :(

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,579 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jiachen Li-MSFT 26,751 Reputation points Microsoft Vendor
    2022-10-05T08:10:24.207+00:00

    Hi @S-Soft ,
    Please check the following document.
    AsymmetricAlgorithm Class Inheritance Hierarchy
    RSACryptoServiceProvider inherits the AsymmetricAlgorithm.
    You can try the following code.

    Dim MyCrypto As RSACryptoServiceProvider = CType(OriginalCertificate.PrivateKey, RSACryptoServiceProvider)  
    

    Best Regards.
    Jiachen Li

    ----------

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful