Reversible encryption function DES (Data Encryption Standard).
1 crypt.des.encrypt
<crypt.des.encrypt password='password'>
<var /> !
</crypt.des.encrypt>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Apassword | string | String of 8 characters, if it is indicated more will not give error but neither will be used. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Evar | Object2Byte | Entry variables. |
Returns | |
---|---|
Type | Description |
String | Returns String with the result of the encryption. |
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='aazubud2'>This is a secret</crypt.des.encrypt> </byte.base64.encode> </set> <println>SECRET AS BASE 64:<m_secret /></println> </body> </xsql-script>