| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Encryption.PubKeyDecrypt
Decrypts data with a private key.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Encryption | 16.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Encryption.PubKeyDecrypt"; InputType; InputData; InputEncoding; PKeyRef; OutputType { ; OutputInfo } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| InputType | The type of input. Can be Text, Container, Image, Path, PDF, Data, base64 or Hex. |
"Text" | |
| InputData | The actual input data. Text, container or file path. |
"Hello World" | |
| InputEncoding | The text encoding for text input. Parameter is ignored for other cases. |
"UTF-8" | |
| PKeyRef | The reference to the private key. | $pkey | |
| OutputType | The output type. Can be Base64, Hex, Text, File, Path. |
"Hex" | |
| OutputInfo | The addition info for output. For text it is the text encoding, for file container the file name and for path the actual native file path. |
"" | Optional |
Result
Returns OK or error.
Description
Decrypts data with a private key.Using RSA-OAEP, OAEP SHA-256 and MGF1 SHA-256.
See also
Blog Entries
This function checks for a license.
Created 22nd May 2026, last changed 22nd May 2026
MarkDown version: EncryptionPubKeyDecrypt.md