decyrpt custom js files

  • Dear Klaus!

    I know that at the moment with the HTML5 viewer it is only possible to encrypt and then decrypt xml files and js files (that are krpano plugins). Would it be hard to implement a custom function that could be used to decrypt any js code?

    To do something along the lines of:

    Code
    $.getScript("my_external_script.js", function(data) {
       $(plugin.sprite).append(krpano.decrypt(data));
    });

    Problem is, we're developing a set of complex plugins for our content, and it is getting hard to maintain and structure code in a modular manner while at the same time keeping it protected as we're only allowed to encrypt JS code that is enclosed in a given structure (krpano plugin).

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!