hugone's Forum Posts

  • I also need badly this plugin... any help will be appreciated

  • Hello dear collegues!

    I really need this plugin for encryption, the links are outdated and can not download neither the plugin nor the examples/doc.

    I will apreciate your help (if you got any other encryptiom plugin that is not XOR also greatly appreciate)

    Best Regards

  • Hey Colleagues!

    I figure out even deleting manually... program eventually will crash... somehow using general save/load and being patient and deleting manually... the memory raises (much slower) but will raise enough to crash...

    I don't know why can not be used the general save and load from Contruct2 in chrome, chromium, NW

    ....

    awful... I dont know what will do now...

  • Hello dear collegues!

    I am making a NW.js app in C2 that should run for several days and when I use "Save/Load" general function, in Chrome or Nw.js at least it drives to "memory leak" ... the only way I found to solve it is to clear entirely (manually delete in the inspector of chrome or NW.js) so memory do not reach the limits to crash the app... (that is about 2 hours)...

    I found very interesting the option to call the browser object to run the javascript "window.indexeddb.deletedatabase('_c2savestates');" ... but it does not work for me, I don't know if need any kind of permission, or what to do... but it does not clear (nor delete) this database...

    could you make me a CAPX example or give me some tip to erase this _c2savestates ?

    thank you in advance, please someone help me cause I am working on this app for about 3 months and is useless due to this crash..

    Note: tried to use localstorage because of the amount of variables and objects... does not work for me, long to explain, just believe I need to use save/load

    Thanks in advance again!

  • Yes Gigatron! your effects are the thing that will keep me returning to this forum, AWESOME!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sposivo Valery I will!

  • sorry, at encrypt function this line have to be removed

    return pass;

    thanks!!

  • Priviet Valery!

    I am making a simple GUI project with C2 running in nw.js (I am not a programmer so C2 was the choice), the problem is that i got stuck when I need to encrypt a string (need aes encryption):

    I am over a month trying it through all plugins I found for call javascript or other means, getting mad, although I read all, and tried all can simply not do it...

    I wonder if you could help me to get out of this problem: I need an example of capx file that could pass a string (text to encode/decode) and a password and take the result back in C2.

    the javascript I am trying to run would be something like this (in my leak of knowledge of programing was the best I could find and modify to be working in nw.js):

    -------------------------------------------------------------------------------------------

    function encrypt(text,parol,aes_format){

    // covert to string to be used in Cipher

    var aes_format = "" + aes_format

    var parol = "" + parol

    var cipher = crypto.createCipher(aes_format,parol)

    var crypted = cipher.update(text,'utf8','hex')

    crypted += cipher.final('hex');

    return crypted;

    return pass;

    }

    function decrypt(text,parol,aes_format){

    // covert to string to be used in Decipher

    var aes_format = "" + aes_format

    var parol = "" + parol

    var decipher = crypto.createDecipher(aes_format,parol)

    var dec = decipher.update(text,'hex','utf8')

    dec += decipher.final('utf8');

    return dec;

    }

    // example variables

    var hw = "hello world"

    var hw2= "5876e13e22e45d9cc1397e0ac0658bf0"

    var parol = "e7wn/S4wJ2&·ns%e7wn/S43J@3Uns%e7wn/¨92J28Uns%e7+n/S()J28U"

    var aes_format = "aes-256-cbc"

    // example call functions encrypt & decrypt

    encrypt(hw,parol,"aes-256-cbc")

    // decrypt(hw2,parol,"aes-256-cbc")

    --------------------------------------------------------------------------------------------

    and I really need to survive achieve in C2: call js to "encrypt(text, pass, format) and same for decrypt function" and receive results back in any variable of C2

    could you help me?

    thanks in advance