<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19412"></HEAD>
<BODY bgColor=#ffffff text=#000000>
<DIV dir=ltr align=left><SPAN class=253024314-11042013><FONT color=#0000ff
size=2 face=Arial>To answer to some posts (thanks for them), the goal is quite
basic :</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=253024314-11042013><FONT color=#0000ff
size=2 face=Arial>- I've a single external scilab function (.sci) that is
called in scilab routine</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=253024314-11042013><FONT color=#0000ff
size=2 face=Arial>- this file has been placed in a specific directory, but under
windows, I cannot allow execution and deny reading</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=253024314-11042013><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=253024314-11042013><FONT color=#0000ff
size=2 face=Arial>I do not really want to encrypt the file, just to deny the
reading and to transform it into "black" box ... it's not a commercial issue ...
I just want to protect my work from some years </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=253024314-11042013><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=253024314-11042013><FONT color=#0000ff
size=2 face=Arial>Paul</FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=fr class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>De :</B> users-bounces@lists.scilab.org
[mailto:users-bounces@lists.scilab.org] <B>De la part de</B> Antoine
Monmayrant<BR><B>Envoyé :</B> jeudi 11 avril 2013 16:45<BR><B>À :</B>
International users mailing list for Scilab.<BR><B>Objet :</B> Re:
[Scilab-users] non access to sci files<BR></FONT><BR></DIV>
<DIV></DIV>
<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">
<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 size=2 face=Arial>Dear
All,</FONT></SPAN></DIV>
<DIV><SPAN class=073500909-11042013></SPAN> </DIV>
<DIV><SPAN class=073500909-11042013><FONT size=2 face=Arial>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 size=2 face=Arial>Does somebody
has a trick ? </FONT></SPAN></DIV>
<DIV><SPAN class=073500909-11042013></SPAN> </DIV>
<DIV><SPAN class=073500909-11042013><FONT size=2 face=Arial>(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 size=2
face=Arial>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>
<pre>--------------------------------------------------------------------------------
Le présent mail et ses pièces jointes sont confidentiels et destinés à la personne ou aux personnes visée(s) ci-dessus. Si vous avez reçu cet e-mail par erreur, veuillez contacter immédiatement l'expéditeur et effacer le message de votre système. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email.