Author Topic: File Protector/Encryptor  (Read 8074 times)

0 Members and 1 Guest are viewing this topic.

Offline Koga73

  • Newbie
  • *
  • Posts: 19
  • I'm new here!
    • View Profile
File Protector/Encryptor
« on: September 14, 2005, 10:41:20 pm »
hello, im new to the forums if u didnt know, anyways, i made this pretty neat little program. Fairly simple, but very effective. basically, you select a file within it, then enter a password (up to 8 characters), and press the encrypt button. Itll encrypt the file using the password you typed in, makeing the file unusable (any file type). So, if it was a text file, and u used the lowest speed (for best encryption), it would be jibberish, and impossible to decrypt without knowing the password (since it uses the password for the actual encryptin method). To decrypt the file, do the exact same thing, itll decrypt it. If you enter the incorrect password, itll still decrypt it, but it wont do it correctly, so ull just have a fucked up file. And, the best part about it is, your file wont change a single bit in size!

Heres a screenshot, pretty basic:


Tell me whata think about the whole concept :).

EDIT:
just realized, thats an older screenshot, i added in an area in the new version to set the encryption speed (the speed is just how many characters it jumps between each encrypted character, so with big files, the more jumps the faster it goes, but less secure, espically with text, a fast speed wont do much).

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: File Protector/Encryptor
« Reply #1 on: September 14, 2005, 10:57:34 pm »
How does the encryption work? Is it a standard encryption, or did you invent it yourself? 

Also, why limit passwords to 8 characters? Passwords should be _AT LEAST_ 8 characters, preferably more.  8 characters passwords are possible to bruteforce.


Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
Re: File Protector/Encryptor
« Reply #2 on: September 14, 2005, 11:03:06 pm »
I bet its something he made up.
And like a fool I believed myself, and thought I was somebody else...

Offline Koga73

  • Newbie
  • *
  • Posts: 19
  • I'm new here!
    • View Profile
Re: File Protector/Encryptor
« Reply #3 on: September 14, 2005, 11:06:47 pm »
Well, idk, i just figured 8 characters would be fine. And as for bruteing it... its not possible to... if you put in the right or wrong password, itll still decrypt it, so unless you can make a program to go thro all the combos, and then check to see if the file has been decrypted correctly, bruting it wont work.

What it does is goes character by character (stepping by the speed, the speed can be from 1-1024, as long as the number between 1-1024 can be mod by the size of the file), and each character it comes to, goes thro each character in the password, converts that character into ascii, and converts the character in the file into ascii, then Xors the ascii from the character in the file by the ascii in the character of the code. So, if u use an 8 character code, itll Xor each character in the file 8 times. So, when u decrypt it, it does the exact same thing.

Incase you dont know what Xor is, ill explain it real quik.

12 xor 6 = 10
how?

00001100 = 12 in binary
00000110 = 6 in binary

so, match coorsponding columns, and if the numbers are the same, then the resultant = 0, if not, the resultant = 1, so the end result would be:

00001010, or 10 in binary.

Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
Re: File Protector/Encryptor
« Reply #4 on: September 14, 2005, 11:11:51 pm »
unless you can make a program to go thro all the combos, and then check to see if the file has been decrypted correctly, bruting it wont work.

Well, why would you do it any other way?
And like a fool I believed myself, and thought I was somebody else...

Offline Koga73

  • Newbie
  • *
  • Posts: 19
  • I'm new here!
    • View Profile
Re: File Protector/Encryptor
« Reply #5 on: September 14, 2005, 11:14:33 pm »
err... i know how bruting works... but when its encrypted, and if its an exe lets say, itll be corrupt/nonworking until decrypted (usable again). So... if u were to go thro every combo, and try to decrypt it, it would decrypt it no matter what you typed in, but you wouldnt get a working version until u got the right pass typed in. And since u decrypt it each time, it would keep decrypting the decrypted file. YOud have to check the file to see if it works like its supposed to (which idk how ud even go about this), and if not, reencrypt the file, the goto the next combo.

Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
Re: File Protector/Encryptor
« Reply #6 on: September 14, 2005, 11:26:44 pm »
Send me the encryptor, and an encrypted version of it.
And like a fool I believed myself, and thought I was somebody else...

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: File Protector/Encryptor
« Reply #7 on: September 14, 2005, 11:40:07 pm »
I'd make a copy of the file, decrypt it with a password, check if it's a valid exe (by checking if the first 2 bytes are MZ, or using the 'file' command on Linux).  If that doesn't work, move onto the next one.  That can be automated and done quite quickly, especially considering I only have to decrypt the first 2 bytes of the file.

You should use AES or DESx3. 

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh

Offline Koga73

  • Newbie
  • *
  • Posts: 19
  • I'm new here!
    • View Profile
Re: File Protector/Encryptor
« Reply #9 on: September 15, 2005, 08:07:31 am »
hmm, ok, ill find a place to post it. Ill post a zip/rar file including the installer/program (a little shitty isntallr is included incase they dont got runtime files), along with an encrypted exe, lets see if anybody can get the exe working :). Gimme a day or so to post it, ill reply with a link.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: File Protector/Encryptor
« Reply #10 on: September 15, 2005, 10:30:38 am »
When will a Linux version be available?


Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: File Protector/Encryptor
« Reply #11 on: September 15, 2005, 01:18:21 pm »
Yeah.  Bruting 8 bites is a pretty insignificant task.

Offline Quik

  • Webmaster Guy
  • x86
  • Hero Member
  • *****
  • Posts: 3262
  • \x51 \x75 \x69 \x6B \x5B \x78 \x38 \x36 \x5D
    • View Profile
Re: File Protector/Encryptor
« Reply #12 on: September 15, 2005, 07:06:57 pm »
Yeah. Bruting 8 bites is a pretty insignificant task.

It takes me 8 bites to eat a piece of pizza. Maybe you're thinking of something else? :p
Quote
[20:21:13] xar: i was just thinking about the time iago came over here and we made this huge bomb and light up the sky for 6 min
[20:21:15] xar: that was funny

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: File Protector/Encryptor
« Reply #13 on: September 15, 2005, 07:09:31 pm »
Yeah. Bruting 8 bites is a pretty insignificant task.

It takes me 8 bites to eat a piece of pizza. Maybe you're thinking of something else? :p

Fast typing FTW.

Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
Re: File Protector/Encryptor
« Reply #14 on: September 15, 2005, 07:27:58 pm »
It takes me 8 bites to eat a piece of pizza.
8?  I must be doing something wrong...
And like a fool I believed myself, and thought I was somebody else...

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: File Protector/Encryptor
« Reply #15 on: September 15, 2005, 07:29:18 pm »
Yeah.  Bruting 8 bites is a pretty insignificant task.

Do you mean bits or bytes? It's hard to tell :P

Offline Quik

  • Webmaster Guy
  • x86
  • Hero Member
  • *****
  • Posts: 3262
  • \x51 \x75 \x69 \x6B \x5B \x78 \x38 \x36 \x5D
    • View Profile
Re: File Protector/Encryptor
« Reply #16 on: September 15, 2005, 08:00:35 pm »
Yeah. Bruting 8 bites is a pretty insignificant task.

Do you mean bits or bytes? It's hard to tell :P

See my post.

Also: (16:25:34) Quik: There's a bit, and a byte, but bites are new to me
Quote
[20:21:13] xar: i was just thinking about the time iago came over here and we made this huge bomb and light up the sky for 6 min
[20:21:15] xar: that was funny

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: File Protector/Encryptor
« Reply #17 on: September 15, 2005, 08:27:49 pm »
Yeah. Bruting 8 bites is a pretty insignificant task.

Do you mean bits or bytes? It's hard to tell :P

See my post.

Also: (16:25:34) Quik: There's a bit, and a byte, but bites are new to me

The question still wasn't answered. 

Offline Koga73

  • Newbie
  • *
  • Posts: 19
  • I'm new here!
    • View Profile
Re: File Protector/Encryptor
« Reply #18 on: September 20, 2005, 03:30:45 pm »
Ok, i made a simple exe in qbasic that contains a single word. Then, i encrypted the program with my program. So, lets see some bruting! If you crack it and get the answer.exe to work, just reply with the word in the program. Heres a url to downlad the answer.exe and the encryptor:

http://mercury.walagata.com/w/koga73/Crack_Me.zip

Offline Quik

  • Webmaster Guy
  • x86
  • Hero Member
  • *****
  • Posts: 3262
  • \x51 \x75 \x69 \x6B \x5B \x78 \x38 \x36 \x5D
    • View Profile
Re: File Protector/Encryptor
« Reply #19 on: September 20, 2005, 05:59:14 pm »
Ok, i made a simple exe in qbasic that contains a single word. Then, i encrypted the program with my program. So, lets see some bruting! If you crack it and get the answer.exe to work, just reply with the word in the program. Heres a url to downlad the answer.exe and the encryptor:

http://mercury.walagata.com/w/koga73/Crack_Me.zip

Oh, if only zorm visited these forums.
Quote
[20:21:13] xar: i was just thinking about the time iago came over here and we made this huge bomb and light up the sky for 6 min
[20:21:15] xar: that was funny

Offline Koga73

  • Newbie
  • *
  • Posts: 19
  • I'm new here!
    • View Profile
Re: File Protector/Encryptor
« Reply #20 on: September 20, 2005, 08:28:03 pm »
hmm, well even if u dont crack it, could u at least respond sayin u tried?

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: File Protector/Encryptor
« Reply #21 on: September 20, 2005, 08:46:16 pm »
Sorry it took me so long.  The word is "Deliquesce".  The encryption key was "102", and the speed was "2". 

I can't believe how slllooooow your program is.  I write an implementation in C that encrypts your 16kb file, at speed 1, in milliseconds. :-P


Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: File Protector/Encryptor
« Reply #22 on: September 20, 2005, 09:37:24 pm »
wrote*?

Sidoh, thanks man! Much better than my old integral division encoding.

EDIT -
Heres my code. By no means secure, due to having the key right in it, but you go right ahead and do what you think is best with it. =)
Code: [Select]
Option Explicit

Public Function Decode(S As String) As String
    Dim Ret As String, Key As Byte, Char As Byte, I As Byte
    Key = Asc(Mid(S, 1, 1))
    For I = 2 To Len(S)
        Char = Asc(Mid(S, I, 1))
        Char = Char Xor Key
        Ret = Ret & Chr(Char)
    Next I
    Decode = Ret
End Function

Public Function Encode(S As String) As String
    Dim Ret As String, Key As Byte, Char As Byte, I As Byte
    Randomize: Key = Int(Rnd * &HFF) + 1
    Ret = Chr(Key)
    For I = 1 To Len(S)
        Char = Asc(Mid(S, I, 1))
        Char = Char Xor Key
        Ret = Ret & Chr(Char)
    Next I
    Encode = Ret
End Function
« Last Edit: September 20, 2005, 09:39:13 pm by Joe[e2] »
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: File Protector/Encryptor
« Reply #23 on: September 20, 2005, 09:38:39 pm »
wrote*?

Sidoh, thanks man! Much better than my old integral division encoding.
Haha, sure.

Sorry it took me so long. The word is "Deliquesce". The encryption key was "102", and the speed was "2".

I can't believe how slllooooow your program is. I write an implementation in C that encrypts your 16kb file, at speed 1, in milliseconds. :-P


Lmao

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: File Protector/Encryptor
« Reply #24 on: September 22, 2005, 11:20:22 am »
hmm, well even if u dont crack it, could u at least respond sayin u tried?

Well, are you going to admit that I rock or what? :P

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: File Protector/Encryptor
« Reply #25 on: September 22, 2005, 05:57:23 pm »
iago rocks. (Please approve me. =p)
I'd personally do as Joe suggests

You might be right about that, Joe.