×

Discussion Board

Results 1 to 7 of 7

Hybrid View

  1. #1
    Regular Contributor
    Join Date
    Jan 2008
    Posts
    56

    is it possible to hide the code ?

    i read the tutorial for newbies and saw the example that i create html file and javascript file for the dynamic stuff.
    is there a way i can hide / encrypt the code somehow ?
    so users wont see how the widget really works or from where its getting information from ?

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,569

    Re: is it possible to hide the code ?

    No can do. If you want to make it hard for the user, use C++ and compile to native binaries (even then, a determined person with the right skills can find out how your application really works and where it gets its information from).

  3. #3
    Regular Contributor
    Join Date
    Jan 2008
    Posts
    56

    Re: is it possible to hide the code ?

    yes but i mean to hide it for the simple persons.
    like python scripts can be compiled to pyc.
    i guess i can just make swf file.

  4. #4
    Registered User
    Join Date
    Nov 2004
    Location
    china
    Posts
    21

    Re: is it possible to hide the code ?

    Maybe you can use confused tools for javascript.

  5. #5
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    60

    Re: is it possible to hide the code ?

    Quote Originally Posted by roidayan View Post
    i read the tutorial for newbies and saw the example that i create html file and javascript file for the dynamic stuff.
    is there a way i can hide / encrypt the code somehow ?
    so users wont see how the widget really works or from where its getting information from ?
    You could "obfuscate" the JavaScript source code (which has the added benefit of making it smaller) but that doesn't really provide any real security in terms of really hiding the source code and for example URLs used in AJAX calls.

    Peppe

  6. #6
    Regular Contributor
    Join Date
    Jan 2008
    Posts
    56

    Re: is it possible to hide the code ?

    thx
    I guess its better than nothing.

    found something that made:
    var url1="http://www.test.com";
    alert("hello world");

    into:
    eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--)d[c]=k[c]||c;k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('8 7="6://5.4.3";2("1 0");',9,9,'world|hello|alert|com|test|www|http|url1|var'.split('|'),0,{}))


    still url is easliy seeing with just looking at it
    but i guess in a longer code it wont be watchable like here.


    ---
    edit
    ----


    also found this url
    http://iframe.in/
    now this one generate nice "hidden" source

  7. #7
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    63

    Re: is it possible to hide the code ?

    Most important thing is protecting content using OMA DRM. Here is how Symbian defines active and passive content.

    The widget is the active component is the passive content. We can apply OMA DRM 1.0 protection to our widget contents.

    Through DRM manager we can do following.

    We can decide how the content distributon will take place?
    How many time we can view the content?
    How many channels the content can be distributed?
    We can set permission to load applicatoin.

Similar Threads

  1. How to Add Hide buttion on RSK?
    By ash_21 in forum Symbian
    Replies: 19
    Last Post: 2007-10-11, 06:35
  2. Replies: 2
    Last Post: 2007-10-05, 20:40
  3. newbie : code 404 when trying to connect to localhost/test.txt
    By lynx3521 in forum Mobile Java General
    Replies: 3
    Last Post: 2007-09-25, 16:21
  4. Link errors when trying to Display bitmap
    By Bkc82 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-01-16, 22:46
  5. Replies: 0
    Last Post: 2003-09-26, 15:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×