Bug: Ecoding hash values with Base64, SHA1, SHA256, SHA512

berndito Registered Posts: 6 ✭✭✭✭

Hi all,

not sure if this is a bug, but to me it seems like that:

Following scenario: I tried to encode strings with SHA1 within a preparatoin recipe and found that several outputs got the same hash, even though the input string varied.

I finally got closer to the cause, that in some cases the input value had a notation like: "3151E19012".

Using the toBase64 encoding and decoding (fromBase64) showed the value "Infinity".

I guess that Dataiku interprets the value as integer and not as string and therefore the number 3151E19012 is interpreted as exponential number that is out of range and returns the value Infinity to the function.

Is this a known issue?


Setup Info
      Help me…