Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

RSA.GetPublicKey

Queries public key from private key.

Component Version macOS Windows Linux Server iOS SDK
Sign 6.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "RSA.GetPublicKey"; KeyType; KeyData { ; KeyEncoding; PasswordType; PasswordData; PasswordEncoding } )   More

Parameters

Parameter Description Example Flags
KeyType The type of input for private key.
Can be Text, Container, Image, Path, PDF, Data, base64 or Hex.
"Path"
KeyData The actual input data for the key.
Text, container or file path. Must not be longer than the maximum key length of the given algorithm. If key is too short, we pad it with zero bytes.
"/Users/cs/desktop/test.pem"
KeyEncoding The text encoding for text input for the key.
Parameter is ignored for other cases.
Optional
PasswordType The type of input for the password of the private key.
Can be Text, Container, Image, Path, PDF, Data, base64 or Hex.
"Text" Optional
PasswordData The actual input data for the password of the private key.
Text, container or file path. Must not be longer than the maximum key length of the given algorithm. If key is too short, we pad it with zero bytes.
"Hello World" Optional
PasswordEncoding The text encoding for text input.
Parameter is ignored for other cases.
"UTF-8" Optional

Result

Returns text or error.

Description

Queries public key from private key.
You pass in private key and this function returns public key as PEM.
Returns public key in PEM format as text.

You can create a new private key using RSA.GeneratePrivateKey function.

See also

Example Databases

Blog Entries

This function checks for a license.

Created 12nd March 2016, last changed 30th May 2016


RSA.GeneratePrivateKey - RSA.PrivateDecrypt