Skip to content
  • Jo-Philipp Wich's avatar
    lib: introduce hexenc() and hexdec() · 8da140fd
    Jo-Philipp Wich authored
    
    
    Add two new functions to deal with encoding and decoding of hexadecimal
    digit strings:
    
     - hexenc() - convert the given input value into a lower case hex digit
       string, implicitely converting the input argument to a string value
       if needed
    
     - hexdec() - decode the given input hex digit string into a byte string,
       skipping whitespace or optionally specified characters in the input
    
    Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
    8da140fd