Changes

Jump to navigation Jump to search
46 bytes added ,  18:41, 23 September 2019
|-
| width='120' | '''Signatures'''
|{{Func|crypto:encrypt|$input data as xs:anyAtomicType, $encryption as xs:string, $key as xs:anyAtomicType, $algorithm as xs:string|xs:base64Binary}}
|-
| '''Summary'''
|Encrypts data with the given specified key:* {{Code|$inputdata}}, which can must be a string or binary item:<br/>.
* {{Code|$encryption}} must be {{Code|symmetric}}.
* {{Code|$key}} is the secret key which is used for both encryption and decryption of input data. It can be a string or binary item. Its length is fixed and depends on the chosen algorithm: {{Code|8 bytes for DES}}, {{Code|16 bytes for AES}}.
|-
| width='120' | '''Signatures'''
|{{Func|crypto:decrypt|$input data as xs:anyAtomicType, $type as xs:string, $key as xs:anyAtomicType, $algorithm as xs:string|xs:string}}
|-
| '''Summary'''
|Decrypts Encrypts data with the encrypted specified key:* {{Code|$inputdata}}must be a string or binary item.<br/>* {{Code|$type}} must be {{Code|symmetric}}.<br/>* {{Code|$key}} is the secret key which is used for both encryption and decryption of input data. Its length is fixed and depends on the chosen algorithm: {{Code|8 bytes for DES}}, {{Code|16 bytes for AES}}.<br/>* {{Code|$algorithm}} must either be {{Code|DES}} or {{Code|AES}}. Other algorithms are not supported so far, but, of course, can be added on demand. '''Default is {{Code|DES}}'''.
|-
| '''Errors'''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu