# Does the operating system matter when using Encode[]?

I have a package I want to distribute. I wrote the package in Version 9 under a Mac OS X operating system. I want to Encode[] the package.

The end user will run the package on a full Mathematica Version 9 license running on a Windows OS.

As I don't have access to a Windows machine to test this I wondered if anyone knew whether Encode[] is operating system specific?

Will a package encoded on OS X run on Windows?

-

@Jagra: Difficult to discuss those things in comments, as they are very limited here at m.SE. I'll try to be brief, but that usually doesn't work. First, what you're asking here, limiting the use to a given MachineID, is not what you mentioned in your original post. This may become a branch discussion. Next, if we take the text "... to generate an encoded file that can be read only on a computer with a particular $MachineID" from the documentation literally, it would mean it's actually an encryption, not just an encoding. But then you should ask tech support what crypto strength – Andreas Lauschke Jan 26 '13 at 4:52 @Jagra: this feature provides, if it's on par with the provably unhackable systems like AES128, 192, 256, or RSA2048, 4096, or elliptic curve cryptography, etc. I'm pretty sure it's not. Tech support will probably not answer that question, because if it's poor, they don't want to disclose that, and if it were strong, WRI would advertise high crypto strength, which they don't do. So, you can assume this feature is skimpy to begin with. Next, note that the documentation says "On certain computer systems ...", which means it works on some and it doesn't work on others. So they keep you guessing. – Andreas Lauschke Jan 26 '13 at 4:55 @Jagra: But you can solve this system-dependence item yourself: Don't use this option of Encode, use Encode normally, and at the beginning of your encoded file, bail out if it's the wrong MachineID, with something like If[$MachineID=!=...,Print["You are not permitted to use this package. Please purchase a license."];Exit[]]; That way it's guaranteed to work on all systems and you get the same "protection" that this option in Encode is supposed to give you. – Andreas Lauschke Jan 26 '13 at 5:01