Base 64 Expressions

Certified Lead Developer

The decodehexstring function in Base64 Expressions doesn't return the original text.

Demo example - 

decodehexstring(md5hash("jit")) returns ";n�S��,���F�" instead of "jit".

  Discussion posts and replies are publicly visible

Parents
  • subhajits said:
    decodehexstring(md5hash("jit")) returns ";n�S��,���F�" instead of "jit".

    decodehexstring() and md5hash() are completely different functions for different purposes. So, these functions never do the opposite of the other.

    md5hash()

    • This function will return the 128-bit digest of the input string in a hex format so that the 128 bit can be easily represented with just 32 characters.

    decodehexstring()

    • This function accepts a hex string and returns the equivalent text.
      • Eg. if the hex string is 5E4B31 then it will be separated into pairs of 2 characters (HEX CODE) and the text equivalent for the corresponding hex code will be returned. For this example the output will be ^K1
        • 5E - ^
        • 4B - K
        • 31 - 1
    • Refer this lookup chart for more info

    Thanks,

    Raghu

     

Reply
  • subhajits said:
    decodehexstring(md5hash("jit")) returns ";n�S��,���F�" instead of "jit".

    decodehexstring() and md5hash() are completely different functions for different purposes. So, these functions never do the opposite of the other.

    md5hash()

    • This function will return the 128-bit digest of the input string in a hex format so that the 128 bit can be easily represented with just 32 characters.

    decodehexstring()

    • This function accepts a hex string and returns the equivalent text.
      • Eg. if the hex string is 5E4B31 then it will be separated into pairs of 2 characters (HEX CODE) and the text equivalent for the corresponding hex code will be returned. For this example the output will be ^K1
        • 5E - ^
        • 4B - K
        • 31 - 1
    • Refer this lookup chart for more info

    Thanks,

    Raghu

     

Children