symmetric decryption(a, algorithm b, key c, charset d, [iv e])
Group |
Decrypts the hex-encoded binary data a, using the hex-encoded symmetric key c and algorithm b. The result is the text created from the decrypted binary data using charset d. If an initial vector is needed for the decryption algorithm, it can be provided as hex-encoded text in e.
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.
Description of Parameters
a |
Text to be encrypted. |
b |
(optional) Encryption algorithm. Default: AES. Note: Use the three dots to select a value. |
c |
Key as hex-coded text. |
d |
(optional) Charset used for the conversion from binary to text data. Default: 8859_1 |
e |
(optional) Initial vector as hex-encoded text. |
Examples
The used values originate from the examples of the encryption function.
Parameter a |
b |
c |
d |
e |
Result |
5720cacf806b4feccfd1d4baf7b4e036 |
|
010203040506070809000a0b0c0d0e0f |
|
|
täst? (The Euro sign is not supported in 8859_1) |
bfa536255e3055e5c3342eebb509eee3 |
|
010203040506070809000a0b0c0d0e0f |
uft8 |
|
täst€ |
bfa536255e3055e5c3342eebb509eee3 |
AES/ECB/PKCS5Padding |
010203040506070809000a0b0c0d0e0f |
uft8 |
|
täst€ |
64f2e3f139eb65be |
DESEDE/ECB/PKCS5Padding |
010203040506070809000a0b0c0d0e0f |
8859_15 |
|
täst€ |