Save an internal EC private key string to an encrypted private key file.
public static int SaveEncKey( string outputFile, string internalKey, string password, Ecc.PbeScheme pbes, string paramString, Ecc.Format fileFormat )
Public Shared Function SaveEncKey ( outputFile As String, internalKey As String, password As String, pbes As Ecc.PbeScheme, paramString As String, fileFormat As Ecc.Format ) As Integer
Valid name-value pairs for paramString are:
| Parameter | Description |
|---|---|
| count=integer | To set the iteration count used in the PBKDF2 method, e.g. "count=5000;" [default=2048]. |
| prf=hmac-name | To change the HMAC algorithm used in the PBKDF2 method, e.g. "prf=hmacwithSHA256;" [default=hmacwithSHA1]. |
>Valid values for hmac-name are one of {hmacWithSHA1, hmacWithSHA224, hmacWithSHA256, hmacWithSHA384, hmacWithSHA512}.
VB6/C equivalent: ECC_SaveEncKey