Satt just och slöläste lite i VBA-hjälpen, och hittade "Ways to protect sensitive information" under "Helpful Features You Can Add to Your Application". Där står följande: Lol det är ju helt sanslöst kul. Jag gillar meningen : Tja, det här säkerhetstänkandet går ju igen även på andra ställen. De tillhandahåller ju det fina verktyget "Script Encoder" som är till för att göra så att ingen annan ska kunna se skriptkoden.Bra förslag! =)
<info>
Ways to protect sensitive information
Many applications use data that should be available only to certain users. Here are some suggestions you can use to protect sensitive information in Microsoft Forms:
[...]
-Write code that sets the control's foreground and background to the same color when unauthorized users run the application. This hides the information from unauthorized users. The ForeColor and BackColor properties determine the foreground color and the background color. For information about ForeColor, click []. For information about BackColor, click [].
[...]
</info>
Grymt bra ide... hur fan kan de skriva sånt här i en officiell utvecklarhjälp?Sv: Bra förslag! =)
<b>Write code that sets the control's foreground and background to the same color when unauthorized users run the application.</b>
En bra applikation släpper väl inte ens in UNAUTHORIZED USERS!!! Gaah...En enkel copy/paste och så var den hemliga information knäckt! Helt otroligtSv: Bra förslag! =)
Själv kodningen är ett substitutionskrypto med fast nyckel. Hur svårt är det att knäcka när man kan köra chosen-plaintext attack?
"Up to now, one of the shortcomings of using scripts is that they afford no protection of the intellectual property contained within, nor do they provide any assurance that what users get is what you created. Clever algorithms and carefully designed scripts were always completely visible because they were stored as plain text. As a result, script users at every level could see the script designer's code and could then take it, modify it, and make it their own. Obviously, this is not good if you're trying to get an edge in a very competitive environment.
With the introduction of scriptlets, protecting the source code becomes even more important. Script designers want to use this simple component architecture, but they don't necessarily want to share their source code with the world. After a script is encoded, changing any part of the resulting file will render it inoperable, thus ensuring the absolute integrity of your encoded script."
De har dock också med en liten disclaimer, faktiskt:
"Note that this encoding only prevents casual viewing of your code; it will not prevent the determined hacker from seeing what you've done and how."
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/SeconScriptEncoderOverview.asp
Mer att läsa om skriptkodaren:
http://www.tydal.nu/article/16