<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 11/04/2013 16:23, Adrien Vogt-Schilb
      wrote:<br>
    </div>
    <blockquote cite="mid:5166C779.6040903@centre-cired.fr" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">On 11/04/2013 11:15, Carrico, Paul
        wrote:<br>
      </div>
      <blockquote
        cite="mid:55A12CBC06A8C9459DCE0BBEF8122FDC08B779CE@exchsrv.auxitrol.ad"
        type="cite">
        <div><span class="073500909-11042013"><font face="Arial"
              size="2">Dear All,</font></span></div>
        <div><span class="073500909-11042013"></span> </div>
        <div><span class="073500909-11042013"><font face="Arial"
              size="2">I know it's not possible to encrypt a Scilab .sci
              file so far ; I want to deny reading but I want to allow
              execution ...</font></span></div>
        <div><span class="073500909-11042013"></span> </div>
        <div><span class="073500909-11042013"><font face="Arial"
              size="2">Does somebody has a trick ? </font></span></div>
        <div><span class="073500909-11042013"></span> </div>
        <div><span class="073500909-11042013"><font face="Arial"
              size="2">(creating a binary file, include it in a C file,
              etc. ...I've don't know)</font></span></div>
        <div><span class="073500909-11042013"></span> </div>
        <div><span class="073500909-11042013"><font face="Arial"
              size="2">Paul</font></span></div>
      </blockquote>
      Dear Paul, <br>
      <br>
      No trick will be never possible. The user can always use
      fun2string to display the source code of any function that Scilab
      can execute after reading it from a .sci file. You cannot prevent
      Scilab for doing so.<br>
      Scilab can be executed in a mode where it displays each line of
      code before executing it.<br>
      The user can also modify Scilab source code to get Scilab display
      whatever Scilab is allow to read. If Scilab can execute it, Scilab
      can display it. This is completely unavoidable. <br>
      <br>
    </blockquote>
    Well, it's not completely true: what you say applies to macros, not
    to C (or Fortran) native functions (that is, compiled and linked).<br>
    You can translate all your code to C and write the proper wrapper to
    use it like a native scilab function and compile it and then remove
    the sources.<br>
    I think this should work but I don't know if it worths the effort.<br>
    <br>
    Antoine<br>
    (and if you distribute it, are you still in agreement with scilab
    open licence your binary blob with no source?)<br>
    <blockquote cite="mid:5166C779.6040903@centre-cired.fr" type="cite">
      <pre class="moz-signature" cols="72">-- 
Adrien Vogt-Schilb (Cired)
+33 (0) 1 43 94 73 83</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>