VBScript.Encode does not work

Posted by Poromenos on Tue 17 Feb 2004 12:16 AM — 7 posts, 20,502 views.

Greece #0
I don't know if i did something wrong, but i encrypted my script and set the language to vbscript.encode and i got an error which mainly said that MC doesn't understand what the script is... Could anyone help with that?
By the way, the script is:
(Removed because it scrolls a lot and you probably wouldn't use it anyway)
Amended on Tue 17 Feb 2004 12:22 AM by Poromenos
Greece #1
I am a horrible, horrible person... Sorry about the scrolling :(
Greece #2
By the way, windows script encoder:
http://download.microsoft.com/download/0/0/7/0073477f-bbf9-4510-86f9-ba51282531e3/sce10en.exe
Australia Forum Administrator #3
I downloaded the scrcode or srccode or whatever it is called, and encoded the script alright, but when I put it into a plugin it simply didn't seem to decode it, it just objected to the encoded text.

Is that what happened to you?

BTW - have you tried using Greek letters in Unicode? Does it work?
Greece #4
Yes, that's what mine did too... Is MC trying to parse anything?
Amended on Tue 17 Feb 2004 10:13 PM by Nick Gammon
Australia Forum Administrator #5
I moved your Unicode response to the Unicode thread.

No, MUSHclient is just using the Vbscript.Encode engine, as you requested. The error seems to be from the script engine. Perhaps it doesn't work inside scripts, only web pages.

Anyway, I did what you wanted, it isn't my fault that Microsoft's script engine isn't working. ;)

In any case I still think that the idea won't really work. Whilst searching for the encoder I came across dozens of sites that offered small programs that would decode encoded scripts. So, if you wrote a script, and tried to charge money for it, and someone didn't want to pay, they would find the decoder, so I don't think you are much better off.
Greece #6
True, Microsoft states that the encoder will only prevent casual viewing of scripts... It's really handy if you want to distribute a script to other people but you don't want them to copy the source code or see how it works... I'll test it some more and see what's going on...