Re: Data Encryption
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> May 15, 1998
- 760 views
Salutations, >I have recently gotten into data encryption algorithms, and just to >see, I have developed a *very* basic one, Not as "basic" as the one I did. Rather than manipulate the characters on a binary level, I just added a certain integer to each ascii code and if it ened up more than 256 then I subtracted 256 from it or something like that. >as well. My problem is that when I try to decrypt the file, >sometimes the marker that shows which bit to switch in >the character ("ch" in the "decrypt_file" procedure) >sometimes reads in a very strange value, and causes a >subscript error. Like some one else said, watch out for the "\n" character. I didn't have to worry about that in my prog. It happens randomly, sometimes not at all, >and it has me completely baffled. I think this would be a >very cool program, and useful too, if I could get it to run!! Yes it would, keep working on it. You'll figure it out. If you want to check my proggie out it is on the recent user contributions page in the "graphics bundle" by Lewis Townsend :) It works for both typing and text files as long as the characters are within 256 chars :) > Bryan Watts > (Oh yeah, I'm a junior in high school, and while it may > not seem like much to you guys, my team came in 4th place > out of 40 teams in the SouthWest US in a computer > programming contest at UCF. Yay me!) Cool, I wish my high school would have participated in cool contests like that. I guess I was lucky to have been in art contests they were fun and sometimes we got to go outside and draw :) Sincerely, Lewis Townsend |\ ____ _ _ _ _ __ | \ | __/ || / | // || / __ \ | \ ||_ || //|| // || ||__\| | \ | _| || // || // || \___ \ | |\ \ ||__ ||// ||// || |\__|| | | \ \|___\ |_/ |_/ || \____/ | | \ \ _____ ________ | | \ \ | __ \ | __ __ | | | \ \ ||__|| |/ || \| | | \ \ | __ / || | |______\ \ || \\ || |___________\ || || || Keroltarr at hotmail.com ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com