You are reading a single comment by @d0773d and its replies. Click here to read the full conversation.
  • Let's say, for example, I have the following code:

    uint8_t in[]  = { 0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96, 0xe9, 0x3d, 0x7e, 0x11, 0x73, 0x93, 0x17, 0x2a,
                        0xae, 0x2d, 0x8a, 0x57, 0x1e, 0x03, 0xac, 0x9c, 0x9e, 0xb7, 0x6f, 0xac, 0x45, 0xaf, 0x8e, 0x51,
                        0x30, 0xc8, 0x1c, 0x46, 0xa3, 0x5c, 0xe4, 0x11, 0xe5, 0xfb, 0xc1, 0x19, 0x1a, 0x0a, 0x52, 0xef,
                        0xf6, 0x9f, 0x24, 0x45, 0xdf, 0x4f, 0x9b, 0x17, 0xad, 0x2b, 0x41, 0x7b, 0xe6, 0x6c, 0x37, 0x10 };
    

    And I want to output that array using:
    '''jsiConsolePrint();'''

    Does jsIConsolePrint() only allow a string input? Do I need to for each through the array then store each segment of the array to a string?

    The reason why I ask is. I tried to use a for each to loop through the array and output each segment of the array to the WebIDE and I expected to see the ascii representation of the hex value. However, I received what looked like all %.

    The ascii representation should be:
    kÁ¾â.@é=~s®-W¬·o¬E¯Q0ÈF£\äåûÁ
    Rïö$EßO+A{æl7

    I even tried placing the hex representation of the alphabet into the array; however, I still received all % as the output.

    Eventually, my real world code will receive an encrypted JSON string and I would like to output the unencrypted JSON string to the WebIDE console. I have AES128-CBC encryption and decryption working (so I think, I don't want to jinx myself). I'm just having trouble outputting the text to the console.

About

Avatar for d0773d @d0773d started