From: Leslie Viljoen Date: 2006-05-22T19:48:36+09:00 Subject: Re: Writing a interpreter extension On 5/22/06, Kris wrote: > It would take a higher skill set to extract it though. > And you can write code that helps hide a key in a binary file. > > So is it possible to write a C extension that overrides the ruby require > in the same way as the previous ruby example? Sorry to be a whiner, but can't you put the key in a file only readable by the person who should be able to read it? Ie. manage your key security using your OS's security. Then you can also encrypt your key file with a password the user has to enter if you like. This is how SSH handles private keys. Or are you trying to obfuscate a Ruby program? It sounds like you are prepared to go to a lot of effort to create a weak encryption system, which would be a shame. Les