$cipher.setKey

Set the current key in use to be the named.
Syntax
    $cipher{setKey}{keyName}
    $cipher.setKey{keyName}
DocumentationSet the current key in use to be the named.

    Parameters:
      setKey, a flag to indicate that the named key is to be the current in use.
      keyName, the name of the key.
    NOTE:
      to decipher data the key used for enciphering must be set to be the current.
Examples
    $cipher{setKey}{myKey}

    Note: only after calling the above function, the key 'myKey' will be
    the the key selected for usage. 'myKey' will be the current key
    until the next call of $cipher{setKey} or $cipher{removeKey}{myKey}.
GroupSpecial
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters 1