Mar 07, 2006 22:19
Well, I am quite happy at the moment. Today I spent most of the day working on my encryption program. I wanted to be able to use it for the ethics part of my Honours because I need to be able to code the voices, and strip them of the name of who did it and such. I figured, I can have a file that has all the names and what programs that each of them used, and what number corresponds to each name, and then I can encrypt that so that to anyone who came across the file, it would look like crap to them. I'll explain a little bit how the program works. This might start getting a bit complicated for some people, but bear with me.
To get into the program, you need to enter the password. The password is in a hidden file, that is also encrypted. The program opens the file up, decrypts the file using the algorithm and the password entered is used as the passkey. Without going into overly complicated things, the passkey is part of the algorithm as it is used in the decryption and encryption process. If the password matches what was decrypted, then the program opens.
When encrypting a file, it asks you to enter a key for it. This key is then encrypted and places at the start of the file. This is so that you can have different keys for each file. To decrypt you need to enter the key again. The program will then check how many characters you entered in and read in that amount from the file. It will then encrypt the key you entered using that as the passkey, if it matches what was read in, it decrypts and removes the key at the beginning. If not, then it won't. As an example, say I encrypt 'Hello' with the key '123'. It will encrypt 'Hello' using '123' as the passkey and then place that at the start of the file. The text now looks like this 'cedz˜ž¢', 'ced' is '123' encrypted. Then to decrypt I have to enter '123' again, as that is 3 characters, it will read in 'ced' and encrypt '123' to see if it makes 'ced'. It will, and the program will decrypt it. If I entered something else, say '12' it would only read in 'ce'. Since the key is part of the algorithm '12' will not encrypt to 'ce'. As an example, 'Hello' encrypted with the key '12' makes 'ccz-ž¡'. As you can see, quite different to using '123' as the key.
In short, this makes me VERY happy. I've also provided a few things for people to play with, like fonts and colours.
Oh, before, our laundry flooded. Since Dad is now home, he cleaned it up. I'm glad it didn't flood when no-one else was home, annoying to have to clean up all that water...
computer stuff,
unicrap