CryptoSys PKI Pro Manual

Rsa.KeyValue Method

Extract a base64-encoded RSA key value from internal key string

Syntax

[C#]
public static string KeyValue(
   string keyString,
   string fieldName 
)
[VB]
Public Shared Function KeyValue (
   keyString As String,
   fieldName As String 
) As String

Parameters

keyString  String
Public or private key in internal string format
fieldName  String
Name of field to be extracted: "Modulus" or "Exponent"

Return Value

String
Value encoded in base64 or an empty string on error

Remarks

The output is a continuous string of base64 characters suitable for a <RSAKeyValue> node in an XML-DSIG document.

See Also

VB6/C equivalent: RSA_KeyValue

[Contents] [Index]

[PREV: Rsa.KeyMatch(StringBuilder, StringBuilder) Method...]   [Contents]   [Index]   
   [NEXT: Rsa.MakeKeys(String, String, Int32, Rsa.PublicExponent, Int32, String, CipherAlgorithm, HashAlgorithm, Rsa.Format, Boolean) Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.