User Tools

Site Tools


syntax:functions:hexencode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
syntax:functions:hexencode [2020/11/25 18:13] – created dmitrysyntax:functions:hexencode [2021/09/17 22:58] craigt
Line 1: Line 1:
-=====HexEncode(encoding, text)=====+====== HexEncode(encoding, text) =====
 +Category:  Web function
  
-Converts the provided text value into a hex string. The text is assumed to have the specified encoding. Supported encodings:+\\  
 +=====Description===== 
 +This function converts the provided text value into a hex string. The text is assumed to have the specified encoding.  Refer to the supported encodings, below.
  
-^  Encoding   Notes  ^+\\  
 +=====Arguments===== 
 +^Argument^Type^Description^ 
 +|encoding  | Text |The encoding method to use on //text// See the table below. 
 +|hex_text  |Text |The text string to be encoded. 
 +**Return value type:** Text. 
 + 
 +\\  
 +=====Remarks===== 
 +The first argument, //encoding//, is case-insensitive. The second argument, //text//, is case-sensitive. 
 + 
 +\\  
 +^Encoding  ^Notes  ^
 |base64    | | |base64    | |
 |base64url | Base64 in URL encoding | |base64url | Base64 in URL encoding |
Line 9: Line 24:
 |utf-16    | | |utf-16    | |
  
 +\\ 
 +=====Examples=====
 +  hexencode('base64url', ''VmFsaGFsbGE=' //Returns '56616c68616c6c61'
  
-**Example** +  hexencode('utf-8', 'Valhalla' //Returns '56616c68616c6c61'
-^ Expression ^  Result +
-| hexencode('base64url', ''VmFsaGFsbGE='   |56616c68616c6c61 | +
-hexencode('utf-8', 'Valhalla'            |56616c68616c6c61 +
- +
-The 1st argument is case-insensitive. The 2nd argument is case-sensitive.+
  
-**See also**+\\  
 +=====See also===== 
 +  * [[syntax:functions:encode|Encode(method, text)]] 
 +  [[syntax:functions:hexdecode|HexDecode(encoding, hex_text)]] 
 +  [[syntax:functions:uriencode|URIEncode(encoding, value)]]
  
-  * [[syntax:functions:hexdecode]] 
-  * [[syntax:functions:encode]] 
-  * [[syntax:functions:uriencode]] 
syntax/functions/hexencode.txt · Last modified: 2021/09/18 21:07 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki