asymmetric encryption()
Encrypts a text a with charset d, using the asymmetric key c and algorithm b. The result is the encrypted data, see also parameter f.
If an initial vector is needed for the encryption algorithm, it can be provided with e.
Parameters
Parameter |
Description |
a |
Text to be encrypted. |
b |
Encryption algorithm. Note: Use the three dots to select a value. Note: If no mode and padding is specified, the JVM default will be used which might change in a future version. The specification of the complete algorithm is suggested. |
c |
Key (public) as hex-encoded text. |
d |
Charset used for the conversion from text a to binary data. Note: Use the three dots to select a value. |
e |
(optional) Initial vector as hex-encoded text. |
f |
(optional) The format of the return value. Allowed values: hex, base64, raw. Default: hex |
Example
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCT1kTmUa8qH/r6GRZdPX5MZ2+fIsf4qr3UvTctt0iSbQB1FtzjhqsDRXQSnb60As561U5uW+O7+okI9a6dY/DX3xYWSQNsgF/4kGgYt4GeP9XLT9J7KqD5qmlao7xLnxn2D+MAowuEVMk3Ytvjur4O6AxslIxWWOdupxcYjF4mAwIDAQAB
MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAJPWROZRryof+voZFl09fkxnb58ix/iqvdS9Ny23SJJtAHUW3OOGqwNFdBKdvrQCznrVTm5b47v6iQj1rp1j8NffFhZJA2yAX/iQaBi3gZ4/1ctP0nsqoPmqaVqjvEufGfYP4wCjC4RUyTdi2+O6vg7oDGyUjFZY526nFxiMXiYDAgMBAAECgYAVZx/yeEDzyE19h8RFG3H9fbwbPd3VkmKJOhuS8sX+7Oj0CqtQBV8cyiFT0KKbTQy3m8oPEB6YSF0ufuMYxi9H2RlgqgcCkMotTgz8+yWfPKMF1a3cJWmg7Mz0P74RJl5CPU/KdExVp6d7Q00T0aBHaUNTn6JPh91lI24vh3cPgQJBAMh9yeU/322n/nTDmAXUGn+C44UUBFgIORm3Qy/tZNcSdHRD56Q7qpeBxHuh8BX8klUfNCqlVnWOPh9SIZsKITUCQQC8xIAaKtHvaCnOFwnBlKCdS3/yyu8t9kLEICXJp5eo9nA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