Help with OB2 Hash Function

Hi,

I am trying to use the OB2 HASH function. It will giving me output in byteArray. But I dont have an option to convert it back to string. In OB1 it was giving an ouput in String.

I tried the option in OB2 to convert bytes to binaryString which does not seems the right option as it gives a binary String.

Even tried converting my config to C# and wrote the below code still dont get the string value of the Hash

C# code used below

string id= System.Text.Encoding.Default.GetString(idbyte);

And anyway to enable Step by Step execution in OB2.

And how to print the object value in the debugger while using C# or even loli

will Appreciate your response

Thanks,
Allwin

1 Like

Hi, a few pointers

  1. Read this if you didn’t already How to work with byte arrays
  2. Try to use the Hash String function
  3. You can write C# in the lolicode editor, no need to convert your config to C#
  4. Instead of Default try Utf8
  5. Step by step is not implemented yet
  6. To print use LOG myVariable in lolicode (read the documentation please http://localhost:5000/docs)
1 Like

Thanks for quick reply. It does answer all my questions.

no rush but will step by step be implemented?

Thanks again. Appreciate all your efforts and time.

1 Like