This function encrypts a value.
Parameters
- value
-
any
The value to be encrypted.
- cipher
-
string
The cipher with which to encrypt the value, using the form "algorithm/mode/padding" or just "algorithm". Example:
AES/ECB/PKCS5Padding. - alias
-
string
The key alias in the key store with which to encrypt the node.
Returns
-
The value, encrypted with the specified cipher and key.
Throws
-
An exception is thrown if the object could not be encrypted for any reason.

