CryptoSys PKI Pro Manual

Rsa.ReadEncPrivateKey Method

Read encrypted private key file into internal string format.

Syntax

[C#]
[ObsoleteAttribute( "Use Rsa.ReadPrivateKey() instead", false )]
public static StringBuilder ReadEncPrivateKey(
   string privateKeyFile,
   string password 
)
[VB]
<ObsoleteAttribute( "Use Rsa.ReadPrivateKey() instead", false )>
Public Shared Function ReadEncPrivateKey (
   privateKeyFile As String,
   password As String 
) As StringBuilder

Parameters

privateKeyFile  String
filename of a binary BER-encoded encrypted private key info file
password  String
password for key file

Return Value

StringBuilder
StringBuilder containing an internal representation of the private key; or an empty StringBuilder if error

Remarks

This returns a StringBuilder, not a string. Use sb.ToString() to obtain a string.

See Also

VB6/C equivalent: RSA_ReadEncPrivateKey

[Contents] [Index]

[PREV: Rsa.RawPublic(Byte, String, Int32) Method...]   [Contents]   [Index]   
   [NEXT: Rsa.ReadPrivateKey Method...]

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