Reversible function of decryption DES (Data Encryption Standard).
1 crypt.des.decrypt
<crypt.des.decrypt password='password'>
<var /> !
</crypt.des.decrypt>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Apassword | string | String of 8 characters, if more characters are indicated, it will not give an error but they will not be used either. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Evar | Object2Byte | Entry variables. |
Returns | |
---|---|
Type | Description |
String | Returns decrypted string. |
Exceptions
requires 1 argument
The entry parameter has not been specified.
Wrong key size
A password with less than 8 characters has been indicated.
Example
Copy
<xsql-script name='test_gen_hash'> <body> <set name='m_secret'> <byte.base64.encode> <crypt.des.encrypt password='aazubud2007'>This is a secret</crypt.des.encrypt> </byte.base64.encode> </set> <println>SECRET AS BASE 64:<m_secret /></println> <set name='m_secret_resolved'> <crypt.des.decrypt password='aazubud2'> <byte.base64.decode><m_secret /> </byte.base64.decode> </crypt.des.decrypt> </set> <println>SECRET RESOLVED..:<m_secret /></println> </body> </xsql-script>