Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Encryption Program Uncrackable Unless You Have Both Files
04-08-2007, 05:52 PM
Post: #16
Encryption Program Uncrackable Unless You Have Both Files
Hmmm, maybe I got an error in the source, sorry bout that. I'll look into it. Thanks for bringing it to my attention. Like I said beta.

NM 156
by Queensrÿche

Uniform printout reads end of line,Protect code intact leaves little time
Erratic surveys, free thinking not allowed,My hands shake, my push buttons silence
The outside crowd

One world government has outlawed war among nations,Now social control requires population termination

Have we come too far,To turn around,Does emotion hold the key
Is logic just a synonym for,This savagery, disguised in
Forgotten lost memory

Microchip logic,have we no more thought
&Is this wrong& I enter,Answers sought
Punch, punch, punch, transfer this data
Into code. Wide eyes watch my Number 156 is shown
Created from past life to perform,Illicit function, I fail this conscious
Madness I man/machine imperfection
Visit this user's website Find all posts by this user
Quote this message in a reply
04-08-2007, 06:47 PM
Post: #17
Encryption Program Uncrackable Unless You Have Both Files
I figured it out, I was initializing the seed everytime I randomized the number. This would cause the random function to generate not so random numbers. Anyways thanks for pointing that out to me. I've deleted the other two files linked on this site and am posting a new one w/ source included. Thanks!!! ^^

http://www.ostracizedsouls.com/files/crypt.zip

NM 156
by Queensrÿche

Uniform printout reads end of line,Protect code intact leaves little time
Erratic surveys, free thinking not allowed,My hands shake, my push buttons silence
The outside crowd

One world government has outlawed war among nations,Now social control requires population termination

Have we come too far,To turn around,Does emotion hold the key
Is logic just a synonym for,This savagery, disguised in
Forgotten lost memory

Microchip logic,have we no more thought
&Is this wrong& I enter,Answers sought
Punch, punch, punch, transfer this data
Into code. Wide eyes watch my Number 156 is shown
Created from past life to perform,Illicit function, I fail this conscious
Madness I man/machine imperfection
Visit this user's website Find all posts by this user
Quote this message in a reply
04-08-2007, 07:27 PM
Post: #18
Encryption Program Uncrackable Unless You Have Both Files
Thanks Bando!
I at least appreciate your work and in you doing so by sharing it too.

Sure dont mind the beta testing, it's part of making your work better man
nothings perfect, yet if people would report any bugs that really is a bonus
as it gets you on the case even more to improve your source and codes
for the program.

~ Veritas Vos Liberabit ~
Visit this user's website Find all posts by this user
Quote this message in a reply
04-08-2007, 08:11 PM (This post was last modified: 04-08-2007 08:15 PM by Fixation.)
Post: #19
Encryption Program Uncrackable Unless You Have Both Files
Heya, new version, goody...

However, the filesizes are not constant with the decrypted file being larger...

I encrypted the "crypt.zip" file using the tool and decrypted it, the resulting decrypted file was 2 bytes larger than the source and has a different CRC32 (crypt.zip = 28C2FC2B, crypt.zip.decrypted = 83A27963)

Now my guess is you are growing the file by 1 byte with your loop in your source.

Both the .bando and .kyf file is 1 byte more than source, then the decrypted version is 1 byte more again (2 bytes more than source).

Also bizarrely if the filename is long it sometimes will not decrypt.

Keep up the good work.
Find all posts by this user
Quote this message in a reply
04-09-2007, 01:15 AM
Post: #20
Encryption Program Uncrackable Unless You Have Both Files
Thanks guys, I appreciate the input. I'll see what's up w/ it.

NM 156
by Queensrÿche

Uniform printout reads end of line,Protect code intact leaves little time
Erratic surveys, free thinking not allowed,My hands shake, my push buttons silence
The outside crowd

One world government has outlawed war among nations,Now social control requires population termination

Have we come too far,To turn around,Does emotion hold the key
Is logic just a synonym for,This savagery, disguised in
Forgotten lost memory

Microchip logic,have we no more thought
&Is this wrong& I enter,Answers sought
Punch, punch, punch, transfer this data
Into code. Wide eyes watch my Number 156 is shown
Created from past life to perform,Illicit function, I fail this conscious
Madness I man/machine imperfection
Visit this user's website Find all posts by this user
Quote this message in a reply
04-09-2007, 01:57 AM
Post: #21
Encryption Program Uncrackable Unless You Have Both Files
I can't figure it out, my code looks right -.- I can't account for those 2 bytes. Although what's interesting is the size of file on disc is the same. IDK, media file's seem to play right when run through it. If anyones an expert in C++, have a look see what you thinks wrong, cause I'm stumped.

PS. The filename stored by user input is only 50 characters, guess I need to make it longer. Again thanks for the input.

NM 156
by Queensrÿche

Uniform printout reads end of line,Protect code intact leaves little time
Erratic surveys, free thinking not allowed,My hands shake, my push buttons silence
The outside crowd

One world government has outlawed war among nations,Now social control requires population termination

Have we come too far,To turn around,Does emotion hold the key
Is logic just a synonym for,This savagery, disguised in
Forgotten lost memory

Microchip logic,have we no more thought
&Is this wrong& I enter,Answers sought
Punch, punch, punch, transfer this data
Into code. Wide eyes watch my Number 156 is shown
Created from past life to perform,Illicit function, I fail this conscious
Madness I man/machine imperfection
Visit this user's website Find all posts by this user
Quote this message in a reply
04-09-2007, 12:19 PM (This post was last modified: 04-09-2007 12:20 PM by Fixation.)
Post: #22
Encryption Program Uncrackable Unless You Have Both Files
Heyup,

I'm going to take a look through the code and see what I find, it does indeed look ok on first inspection, but the encrypted and key files should be identical in size to the source, and the resulting decrypted file should have the same CRC32 checksum (or MD5 better) so that you know it is indeed working 100%.

Some file formats don't matter if there are trailing extra bytes, they get ignored by the application, but for data integrity you need it exact.

Oh, I also found this article - http://www.cprogramming.com/tutorial/xor.html

A full XOR using a hefty random key like this is essentially unbreakable by design. Certainly if the source data is extremely random, compressed etc, thus preventing patterns.
Find all posts by this user
Quote this message in a reply
04-11-2007, 10:27 PM
Post: #23
Encryption Program Uncrackable Unless You Have Both Files
Well I can't immediately see the issue,

But you may want to use "put" instead of "write" when writing characters to your output streams (ofstream).

Info here - http://www.cplusplus.com/reference/iostream/ofstream/

I must admit I'm not too hot on C++ hehe,

But if I code the same routines in C, I do it by setting up a loop for the size of the input file, then doing "putc(byte, filehandle)" functions to the output file handle and that works with no overrun of file size etc.
Find all posts by this user
Quote this message in a reply
04-12-2007, 12:48 AM
Post: #24
Encryption Program Uncrackable Unless You Have Both Files
Thanks fix, you've been more than helpful, I'll be unable to work on it for a couple days tho...upgrading system...so I have my work cutout for me atm. But I'm definately gonna look into it as soon as everything is running smoothly. I'm upgrading to dual core. *drool*

Thanks and much appreciated for the input. On further consideration, considering, it's probably gonna be a bit before the GUI version is released. Probably better since I should work out all the bugs of the console version first.

Peace everyone.

NM 156
by Queensrÿche

Uniform printout reads end of line,Protect code intact leaves little time
Erratic surveys, free thinking not allowed,My hands shake, my push buttons silence
The outside crowd

One world government has outlawed war among nations,Now social control requires population termination

Have we come too far,To turn around,Does emotion hold the key
Is logic just a synonym for,This savagery, disguised in
Forgotten lost memory

Microchip logic,have we no more thought
&Is this wrong& I enter,Answers sought
Punch, punch, punch, transfer this data
Into code. Wide eyes watch my Number 156 is shown
Created from past life to perform,Illicit function, I fail this conscious
Madness I man/machine imperfection
Visit this user's website Find all posts by this user
Quote this message in a reply
04-16-2007, 06:32 AM (This post was last modified: 04-16-2007 06:32 AM by bando.)
Post: #25
Encryption Program Uncrackable Unless You Have Both Files
Thanks fix, put worked great. And as a bonus, I added drag and drop compatibility. To encrypt, just drag file(only one, unless zipped) to the encrypt program(it outputs to directory of encrypt program). To decrypt, drag krypt and key files to decrypt program(simultaneously).

http://www.ostracizedsouls.com/files/crypt.zip Bandcryption BETA 1.01(source included)

PS I increased the character arrays so you should be able to have a no problem w/ long file names.(If you still do, let me know i'll increase the array)

Have Fun!!!:grin:

NM 156
by Queensrÿche

Uniform printout reads end of line,Protect code intact leaves little time
Erratic surveys, free thinking not allowed,My hands shake, my push buttons silence
The outside crowd

One world government has outlawed war among nations,Now social control requires population termination

Have we come too far,To turn around,Does emotion hold the key
Is logic just a synonym for,This savagery, disguised in
Forgotten lost memory

Microchip logic,have we no more thought
&Is this wrong& I enter,Answers sought
Punch, punch, punch, transfer this data
Into code. Wide eyes watch my Number 156 is shown
Created from past life to perform,Illicit function, I fail this conscious
Madness I man/machine imperfection
Visit this user's website Find all posts by this user
Quote this message in a reply
04-16-2007, 09:26 AM
Post: #26
Encryption Program Uncrackable Unless You Have Both Files
I've been reading the applied cryptology pdf tonight, that thirtyseven uploaded, and it appears my form of encryption is called a one time pad. Unbreakable w/o the key. The key is usually handed off in some secure way such as in person, etc. Then the encrypted file can be sent by other means. Each by themselves, mean nothing. But together they can decrypt the file or message. Great E-book so far.

NM 156
by Queensrÿche

Uniform printout reads end of line,Protect code intact leaves little time
Erratic surveys, free thinking not allowed,My hands shake, my push buttons silence
The outside crowd

One world government has outlawed war among nations,Now social control requires population termination

Have we come too far,To turn around,Does emotion hold the key
Is logic just a synonym for,This savagery, disguised in
Forgotten lost memory

Microchip logic,have we no more thought
&Is this wrong& I enter,Answers sought
Punch, punch, punch, transfer this data
Into code. Wide eyes watch my Number 156 is shown
Created from past life to perform,Illicit function, I fail this conscious
Madness I man/machine imperfection
Visit this user's website Find all posts by this user
Quote this message in a reply
04-16-2007, 10:38 PM (This post was last modified: 04-16-2007 10:39 PM by bando.)
Post: #27
Encryption Program Uncrackable Unless You Have Both Files
I just wanted to be straight forward with everyone, Don't put your life into the hands of my encryption program, as it uses a standard random number generator, and I'm not really sure how random that is. Just giving you all fair warning. I'm pretty sure much of you are smarter than that, but I figured I should point this out for the less mentally endowed.

NM 156
by Queensrÿche

Uniform printout reads end of line,Protect code intact leaves little time
Erratic surveys, free thinking not allowed,My hands shake, my push buttons silence
The outside crowd

One world government has outlawed war among nations,Now social control requires population termination

Have we come too far,To turn around,Does emotion hold the key
Is logic just a synonym for,This savagery, disguised in
Forgotten lost memory

Microchip logic,have we no more thought
&Is this wrong& I enter,Answers sought
Punch, punch, punch, transfer this data
Into code. Wide eyes watch my Number 156 is shown
Created from past life to perform,Illicit function, I fail this conscious
Madness I man/machine imperfection
Visit this user's website Find all posts by this user
Quote this message in a reply
04-16-2007, 11:21 PM
Post: #28
Encryption Program Uncrackable Unless You Have Both Files
Bit slow but seems to work

Can't wait for the Windows version

Thanks for sharing

Og


EDIT
Shit uses a load of CPU

The InfoUnderground
TiU Radio
http://www.TheInfoUnderground.com
Visit this user's website Find all posts by this user
Quote this message in a reply
04-16-2007, 11:31 PM
Post: #29
Encryption Program Uncrackable Unless You Have Both Files
Hows is this program better then truecrypt?
Find all posts by this user
Quote this message in a reply
04-17-2007, 02:37 AM
Post: #30
Encryption Program Uncrackable Unless You Have Both Files
I don't know anything about truecrypt and I never claimed it was better.

NM 156
by Queensrÿche

Uniform printout reads end of line,Protect code intact leaves little time
Erratic surveys, free thinking not allowed,My hands shake, my push buttons silence
The outside crowd

One world government has outlawed war among nations,Now social control requires population termination

Have we come too far,To turn around,Does emotion hold the key
Is logic just a synonym for,This savagery, disguised in
Forgotten lost memory

Microchip logic,have we no more thought
&Is this wrong& I enter,Answers sought
Punch, punch, punch, transfer this data
Into code. Wide eyes watch my Number 156 is shown
Created from past life to perform,Illicit function, I fail this conscious
Madness I man/machine imperfection
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)