#111119 - 2004-01-05 02:07 PM
Re: File Summary for tokenized scripts
|
Richard H.
Administrator
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Having a plain text preamble is not a bad idea, but in the mean time why not just include a version print routine at the very start of your script?
Code:
If IsDeclared($ShowVersion) "File: vinfo.kix" "Desc: Version Info Example" "Version: 1.0.0" ? "Created: 5th January 2004" ? "Creator: Richard Howarth" ? Exit 0 EndIf
The version information will be printed when you call the script with: Code:
kix32.exe myscript.kx $ShowVersion
Things could get a bit messy with the proposed "INCLUDE" to inline subscripts - how would you see those being represented? Collate all the info/preamble at the top of the script? Have a KiXtart switch to print the preamble/info fields?
|
Top
|
|
|
|
#111120 - 2004-01-05 02:18 PM
Re: File Summary for tokenized scripts
|
Radimus
Moderator
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
because, you would want to know what the script is/does... you could rename the script and you wouldn't know what it does. if the tokenized script is also CRC'd you couldn't change the preamble without killing the code
|
Top
|
|
|
|
#111121 - 2004-01-05 03:38 PM
Re: File Summary for tokenized scripts
|
Richard H.
Administrator
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Quote:
because, you would want to know what the script is/does... you could rename the script and you wouldn't know what it does. if the tokenized script is also CRC'd you couldn't change the preamble without killing the code
I don't understand your point - perhaps you misunderstood my post, which was suggesting an interim solution.
Could you elaborate?
|
Top
|
|
|
|
#111122 - 2004-01-05 04:06 PM
Re: File Summary for tokenized scripts
|
Radimus
Moderator
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
well, with your example, you would have to run the code to determine what it was.
My point is that a simple text header would let someone determine what the code was, if someone were to manually edit the header info, the CRC would change and then kill the code... you would have to re-tokenize from the source ... simple measure of security... prevent the code from being tampered with, or replaced with an unexpected code.
|
Top
|
|
|
|
Moderator: Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 557 anonymous users online.
|
|
|