Skip to main content
Version: 4.64

createKey

Creates and saves a cryptographic key in the OS key chain.

Field Configurations​

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters​

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"name" (required)StringThe name of the cryptographic key for later usage.null
"onError"StringEvent that will be fired if the decryption was successfull.null
"onErrorType"OnErrorTypeType of event that will be fired on error.null
"onSuccess"StringEvent that will be fired if the decryption was successfull.null
"onSuccessType"OnSuccessTypeType of event that will be fired on success.null
"type" (required)StringThe type of the cryptographic key.null

Inherited​

From Base Action

Base Action

Field Configurations

KeyTypeDescriptionDefault Value
"dynamicParams"ObjectDynamic params to retrieve data from a specific context e.g. a userSetting.null
"leadingDelimiter"StringThe leading mustache delimiter to use.null
"params"Object,ArrayObject containing the properties of the action.null
"trailingDelimiter"StringThe trailing mustache delimiter to use.null
"type"StringType name of the action.null

Examples​

Example 1: Create an RSA key​

Show ExampleHide Example

Goal: An RSA key is created and ready to be used.

Creates a RSA key with the name primaryKey which is stored in the OS key chain. It can later be used for decryption.

{
"type": "createKey",
"params": {
"name": "primaryKey"
}
}