symmetric decryption()
This function decrypts the hex-encoded binary data a, using the hex-encoded symmetric key c and decryption 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.
Parameters
Parameter |
Description |
a |
Hex-encoded text to be decrypted. |
b |
(optional) Decryption algorithm. Default: AES. 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 as hex-coded text. |
d |
(optional) Charset used for the conversion of the decrypted binary data to text. Default: 8859_1. Note: Use the three dots to select a value. |
e |
(optional) Initial vector as hex-encoded text. |
Examples
The used values originate from the examples of function symmetric encryption().
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€ |