From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Huber, George K CECOM RDEC STCD SRI" Subject: RE: Basic C encryption Date: Tue, 8 Jul 2003 16:03:30 -0400 Sender: linux-c-programming-owner@vger.kernel.org Message-ID: Mime-Version: 1.0 Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-c-programming@vger.kernel.org -----Original Message----- From: Jan-Benedict Glaw [mailto:jbglaw@lug-owl.de] Sent: Tuesday, July 08, 2003 2:52 PM To: linux-c-programming@vger.kernel.org Subject: Re: Basic C encryption Jan-Benedict Glaw wrote: >On Tue, 2003-07-08 13:48:14 -0400, Huber, George K CECOM RDEC STCD SRI >wrote in message : >> Just add one. [...] >Nice examples, but mostly worthless. It was asked to "encrypt" a >function (or a class/instance), not a file. Starting with the binary, >you'd first need to find your function/method. Note that objects per se [...] actually read the original post, quoted below: "Hi, I need a small, basic way to encrypt a binary file saving a custom class from a windoze 32 proyect. For example, add +1 to each character that is about to be saved in the disk. How would that be?" The original poster wanted to encrypt a binary file. The question that he asks is how to add a one to each characte (byte) being saved to disk - exactly what my examples show. George Huber