Nevron Open Vision Documentation
Nevron.Nov.Cryptography Namespace / NCryptography Class / EncryptRSA Method


In This Topic
    EncryptRSA Method
    In This Topic
    Encrypts the specified data with RSA encryption, using the specified public key.
    Syntax
    'Declaration
     
    
    Public Shared Function EncryptRSA( _
       ByVal data() As System.Byte, _
       ByVal publicKey As System.String _
    ) As System.Byte()
    'Usage
     
    
    Dim data() As System.Byte
    Dim publicKey As System.String
    Dim value() As System.Byte
     
    value = NCryptography.EncryptRSA(data, publicKey)
    public static System.byte[] EncryptRSA( 
       System.byte[] data,
       System.string publicKey
    )

    Parameters

    data
    publicKey
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also