DEA128encrypt (String function): Difference between revisions
Jump to navigation
Jump to search
m (Added key length) |
m (add partial content) |
||
Line 2: | Line 2: | ||
This page is [[under construction]]. | This page is [[under construction]]. | ||
This method applies the DEA (Data Encryption Algorithm) using a 128-bit symmetric key to encrypt each 64-bit block of input text. For more details about how the algorithm works, see [https://en.wikipedia.org/wiki/Triple_DES Triple DES]. | |||
The length of the returned string is the same as that of the object string. | |||
DEA is a two-way cipher, so encrypting a string with a key and then decrypting the result of that encryption with the same key produces the original string. | |||
==Syntax== | ==Syntax== | ||
{{Template:String:DEA128encrypt syntax}} | {{Template:String:DEA128encrypt syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table | <table> | ||
<tr><th>%outString</th><td>string</td></tr> | <tr><th>%outString</th> | ||
<td>A string variable to receive the encrypted or decrypted method object <var class="term">string</var>. Its length is the same as <var class="term">string</var>.</td></tr> | |||
<tr><th>string</th> | <tr><th>string</th> | ||
<td>string</td></tr> | <td>The string to which the method is applied. <var class="term">string</var> must be a multiple of eight bytes in length; its maximum is 32768 bytes. It may be null.</td></tr> | ||
<tr><th>key</th> | <tr><th>key</th> | ||
<td>string, | <td>A 16-byte string variable whose value is used to encrypt or decrypt the method object, <var class="term">string</var>.</td></tr> | ||
</table> | </table> | ||
==Usage notes== | ==Usage notes== | ||
==Examples== | ==Examples== | ||
==See also== | ==See also== | ||
<ul> | |||
<li><var>[[DEA64encrypt (String function)|DEA64encrypt]]</var> </li> | |||
<li><var>[[DEA256encrypt (String function)|DEA256encrypt]]</var> </li> | |||
</ul> | |||
{{Template:String:DEA128encrypt footer}} | {{Template:String:DEA128encrypt footer}} |
Revision as of 01:11, 9 March 2016
DEA 128-bit key decryption (String class)
This page is under construction.
This method applies the DEA (Data Encryption Algorithm) using a 128-bit symmetric key to encrypt each 64-bit block of input text. For more details about how the algorithm works, see Triple DES.
The length of the returned string is the same as that of the object string.
DEA is a two-way cipher, so encrypting a string with a key and then decrypting the result of that encryption with the same key produces the original string.
Syntax
%outString = string:DEA128encrypt( key) Throws UnsupportedCrypto, InvalidCryptoKey, InvalidCryptoData
Syntax terms
%outString | A string variable to receive the encrypted or decrypted method object string. Its length is the same as string. |
---|---|
string | The string to which the method is applied. string must be a multiple of eight bytes in length; its maximum is 32768 bytes. It may be null. |
key | A 16-byte string variable whose value is used to encrypt or decrypt the method object, string. |