--Apple-Mail=_36472945-941E-463B-83DA-BEC255BFD713
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

If someone wants it badly enough (say, to run it in a debugger) there's =
not a lot you can do.

We used to do a few things back in the bad old days.

1) Break up the password and put it in different fields/variables/array =
positions and assemble it at runtime. ( x =3D a + f + w + otherclass.y =
etc.)
2) XOR it with something simple and unwrap when needed.

Combine the two if you care.  You can create as many shells of this kind =
of silliness as you want, but frankly, it's faster to break than it is =
to hide, so if you only want to hide it from people scanning through a =
hex editor or running strings, I wouldn't do much beyond step 1.

What is the password protecting?  Is it an anti-piracy measure or an =
authentication token?

-a.

On 22Aug2012, at 2:42 PM, Fosiul Alam <lists / ruby-forum.com> wrote:

> Hi
> Can any one please tel me how to create an Executable for the ruby
> script?
>=20
> I have a ruby script and It has some sensable password in the script
>=20
> so i need a executable file ( by executable i did not mean 755 ) i =
meant
> executable like C
>=20
> How can i do that ??
> Thanks
>=20
> --=20
> Posted via http://www.ruby-forum.com/.
>=20


--Apple-Mail=_36472945-941E-463B-83DA-BEC255BFD713
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIPJjCCBN0w
ggPFoAMCAQICEHGS++YZX6xNEoV0cTSiGKcwDQYJKoZIhvcNAQEFBQAwezELMAkGA1UEBhMCR0Ix
GzAZBgNVBAgMEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBwwHU2FsZm9yZDEaMBgGA1UECgwR
Q29tb2RvIENBIExpbWl0ZWQxITAfBgNVBAMMGEFBQSBDZXJ0aWZpY2F0ZSBTZXJ2aWNlczAeFw0w
NDAxMDEwMDAwMDBaFw0yODEyMzEyMzU5NTlaMIGuMQswCQYDVQQGEwJVUzELMAkGA1UECBMCVVQx
FzAVBgNVBAcTDlNhbHQgTGFr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