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.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Decrypts a private key.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Encryption | 7.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
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. |
||
PasswordType | The type of input for optional password. Can be Text, Container, Image, Path, PDF, Data, base64 or Hex. |
"Text" | |
PasswordData | The actual input data for the password. Text, container or file path. |
"Hello World" | |
PasswordEncoding | The text encoding for text input. Parameter is ignored for other cases. |
"UTF-8" | Optional |
Returns key as text or error.
Encrypt private key and decrypt it:
Set Variable [ $key1 ; Value: MBS( "RSA.GeneratePrivateKey") ]
Set Variable [ $key2 ; Value: MBS( "RSA.EncryptPrivateKey"; "Text"; $key1; "UTF-8"; "AES-128-CFB"; "text"; "Hello") ]
Set Variable [ $key3 ; Value: MBS( "RSA.DecryptPrivateKey"; "Text"; $key1; "UTF-8"; "text"; "Hello") ]
Created 15th October 2017, last changed 16th October 2017
QuickList.XOrColumn - RSA.EncryptPrivateKey
Feedback: Report problem or ask question.