|
-
Aug 25th, 2004, 10:16 PM
#1
Thread Starter
G&G Moderator
String compression/encryption
Howdy all,
I'm working on trying to encrypt a string. Most of the examples I've seen and things I've attempted, end up making the result of the encrypted string, alot bigger in size than the original string. Example:
Trying to encrypt the string "hello world" would end up being something like "hdu87327634husdfsd7823434" which is obviously longer than the original.
Anyone know some algorithms to lower the sie of the string but still encrypt it (and be able to decrypt it)?
Thanks in advance,
[edit]
Also, these strings are going to be saved to a file, so if that helps anyone 
Phreak
Last edited by «°°phReAk°°»; Aug 25th, 2004 at 10:28 PM.
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Aug 25th, 2004, 10:32 PM
#2
I have 2 encryption algoriths that i posted in the Code Bank, none of them make the string bigger...
-
Aug 25th, 2004, 10:43 PM
#3
Thread Starter
G&G Moderator
They are very nice CVMichael. I will use the "highencryption" post as a base for my own.
Ta 
Phreak
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Aug 26th, 2004, 02:31 AM
#4
Please note such encryptions aren't as strong and are easier to find out how they work. Even I might be able to break them, even though such thing isn't what I'm good at
-
Aug 26th, 2004, 02:38 AM
#5
Thread Starter
G&G Moderator
hehe. I'm really getting annoyed with this. Even ZLib is annoying me.
What I'm doing is creating a scripting language (which I've always been interested in doing, I haven't made one as good as this one yet). I want to compress and encrypt the scripts (in an IDE I've created) so that the Engine can Decrypt and Decompress them (and then execute them). Obviously I need something fast. All I really need is something which makes the original file size (the Unicode text) into a smaller file. Binary, anything, I don't mind. Just something that is un-readable when opened in Notepad (or any other text editor).
Pwease hewp! 
Phreak
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Aug 26th, 2004, 03:10 AM
#6
In that case the way you're doing it is good enough
-
Aug 26th, 2004, 03:15 AM
#7
Thread Starter
G&G Moderator
I still need other options though. The things I'm trying either:
a) Don't work
b) Won't work because I can't get them too
c) Don't reduce the size of the file
d) Increase the size of the file.

Phreak
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Aug 26th, 2004, 06:34 PM
#8
Originally posted by «°°phReAk°°»
hehe. I'm really getting annoyed with this. Even ZLib is annoying me.
What's anoying about ZLIB ? I find it VERY easy to use...
-
Aug 26th, 2004, 07:33 PM
#9
Have you read about data compression? Like, how LZ77 works for example? It might help a great bit to actually understand how compression works. Encryption is a little bit simpler than compression (to code - I have coded encryption and decryption, but I've done only decompression as I couldn't get myself to study compression well enough, atleast for the format I should have coded).
AllTheWeb and Google are your friends when looking for info
-
Aug 26th, 2004, 08:37 PM
#10
Hyperactive Member
Well answer could be in HOw ZLib works!
Regards,
Vishalgiri Goswami
Gujarat, ( INDIA ).
---------------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|