Click to See Complete Forum and Search --> : Compression & Encript


deep2000
October 18th, 2001, 03:40 AM
Hello,

Can I have some sample for
1. Compresstion

2. Encription

=Deep

srinika
October 18th, 2001, 03:49 AM
What is compression?

For Encryption:

Get Ascii Value of Each Character & add 100 (or some figure) to change the value of the Character to another ASCII value. (Make sure u don't exceed 255, as that is the max.)

Use the reverse technique to decrypt

For more Security u can change the odd positioned characters by adding one Ascii value and to even positioned ones another Ascii
Good Luck

Cimperiali
October 18th, 2001, 04:29 AM
Go to http://www.planet-source-code.com/
and search for "superior file splitter"
this source code shows a way to split files with a kind of compression:

Superior File-Splitter v0.5 | 22/5/2001 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
By Rudy Alex Kohn [rudyalexkohn@hotmail.com]

Split file (with optional compression), Following code is used : CoolBorder, Encryption (to ini), Check if file exists, FileString Manipulation, ProgressBar Deluxe 1.01, Huffman Compression Class (by F.Q). Very low memory usage when splitting/joining files. See the about tab for additional Credits.

Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.

The Rater

John G Duffy
October 18th, 2001, 09:54 AM
Http://www.Planet-Source-Code.com/vb has a bunch or samples for compression, Encrypt and Decrypt.
Go there search to your hearts delight

John G