Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
RSA.GetPublicKey
Queries public key from private key.
| Component | Version | macOS | Windows | Linux | Server | FileMaker 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
Created 12nd March 2016, last changed 30th May 2016
RSA.GeneratePrivateKey - RSA.PrivateDecrypt
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins