[Plugin]CB Hash (MD5, SHA-1 and SHA-256)

2 favourites
  • jdforce: the problem is unlickely to be the plugin. I have it in the r72 too, and it doesn't crash.

    In doubt, be sure to redownload it and copy again the files in there.

    Maybe they got corrupted and somehow make C2 crash, but there is no logical reason to this.

    Also, moving your post, since it's either a bug of CBHash, either a C2 bug.

  • Kyatric, thanks for moving to the correct place.

    I found that the problem is that somehow I installed both versions, one cbhash and the other cbhash release 70.

    I kept the newer.

  • Ha yeah, this makes sense.

    Glad to know it is solved.

  • Hey Kyatric (same as Kyat from the IRC?)

    It seemed the plugin didn't work anymore with r78. Since I'm very impatient I started debugging myself and think I solved the problems. Hope you don't mind.

    EDIT:

    seems like I got the wrong download link, version from first post works fine.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yes Bicky, same person <img src="smileys/smiley1.gif" border="0" align="middle" />

    Ho wdoes CBHash doesn't work with r78 ?

    I've just tested with my currently installed version (so r70) and all appears to work fine.

    Also I don't recall having seen any SDK change that would break compatibility.

    Care to give me more informations about what's going wrong ? (how you use it, what messages are raised, etc...)

  • Thanks - worked a treat!

  • Kyatric - Nice work! Hey just out curiosity, have you ever dabbled with RC4 encryption? I've been trying to get it to work for ages, through the CallJS plugin, Rex's function plugin, and even having a go at writing a plugin myself. But the main problem is that the returned text uses some strange non standard character set.

    For Example: 1?C#???!z??z?J?? ??     ??BS???y????hvA? ?z[7??????? The same JS works in a standard webpage so I suspect C2 is doing something weird. Have you ever encountered anything strange like that?

  • EyeHawk: Well I don't know RC4 even by name, and apparently, the MD5 and SHA- algorythms stand in the "defined" character set, so no problem with the encryption while I was working on them.

    I guess it depends on how you include the algorythm in your plugin.

    At worse, I'd advice to have an array containing the "character set" and work from there, though it might get pretty complicated.

  • Kyatric - Ok thanks for the suggestion, I'll give it a try. I had a chat to a friend at work today, and he said that it looked like a binary string, so C2 is probably not encoding the output properly. I might also try looking for a binary string converter. Thanks!

  • Hey EyeHawk, I need to use RC4 as well for a project, because it's reversible encryption and there are versions for PHP and ActionScript which makes it very handy for cross platform games.

    It would be great if you could add RC4 functionality to your plugin. I could send you the JS RC4 encrypt/decrypt functions.

    The output is binary, which is a hassle if you need to use it in a URL for example, so what I normally do in PHP is use PHP's pack() and unpack() functions to convert it to hex

    For example

    unpack("H*0", rc4crypt::encrypt($password, $string));

    returns something like

    319d4323fed9d324436fc1d137884a92cc00aefc0eeccf0f01da95ee1b7087aac69c11250b7540a509b7705b3409c8b4178edbbce5

    Which is a lot easier to use.

    Then at the other end you'd use PHP's pack() function to return it to it's original form:

    pack("H*", $encryptedstring);

    I think there's a pack() function for JavaScript but no unpack() function. The source of PHP's unpack() function is available so it should be straightforward to convert to JS. So if you were to add RC4 encryption you could also add options to convert to and from hex.

    Cheers

    Lucas

  • Hi!

    I cannot use plugin with C2 r103.2, cause I got errors when i want to do preview, and when i export, it doesnt work either.

    I tried it in Chrome and in FF (same results).

    See capx.

    <img src="http://www.crayons.sk/bugs/1.jpg" border="0">

    <img src="http://www.crayons.sk/bugs/2.jpg" border="0">

    <img src="http://www.crayons.sk/bugs/3.jpg" border="0">

    <img src="http://www.crayons.sk/bugs/4.jpg" border="0">

    Kyatric can u fix it plz?

  • Peteer: Be sure to download and use the r70 compatible version from the first post of this thread.

    I've just tested in r105 and with this version, the plugin works as expected.

  • Kyatric: It`s working, thank you.

    Firstly i downloaded it from your tutorial page, maybe u can update it there too.

  • Thanks, updated so that people come to the topic.

  • Excellent plugin! The MD5 functions work like a charm.

Jump to:
Active Users
There are 2 visitors browsing this topic (0 users and 2 guests)