RSA.ExportRSAPublicKey Method

Definition

Exports the public-key portion of the current key in the PKCS#1 RSAPublicKey format.

C#
public virtual byte[] ExportRSAPublicKey();

Returns

Byte[]

A byte array containing the PKCS#1 RSAPublicKey representation of this key.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1

See also