|
-
Jul 14th, 2001, 09:32 PM
#1
Thread Starter
So Unbanned
encryption
I wrote a program a while back that encypts using, to the best of my knowledge, XOR. I lost the source code to the program but i still have the program. I'm wondering if other people using similar XOR encryption/decryption can help we re-write the algo.
It's for a chat program I made, and now I can't make updates because I lost the source.
Here are some examples:
encyption.txt
Uses several chr$(0)'s so the only way to properly view it would be with wordpad, or other editor capable of displaying with richtext.
Thank you,
-
Jul 14th, 2001, 09:53 PM
#2
-
Jul 16th, 2001, 12:19 AM
#3
Thread Starter
So Unbanned
Was using, have a much better algo now, *TOP SECRET* hehe. But it doesn't help me with my current problem.
Anyway, do you think you can help me decrypt this?
Thanks for your reply,
-
Jul 17th, 2001, 02:53 PM
#4
PowerPoster
Acutually, a "Top Secret" algorithm won't be very secure because since the algorithm is not published, it would not be scrutinized by others. Usually, an algorithm is only declared "secure" after at least two years under the spotlight of cryptoanalysts.
Well, I'm not really a cryptoanalyst, so I guess you can try reversing your code and running it in loops with different passwords until you get something readable.
-
Jul 17th, 2001, 03:15 PM
#5
Hyperactive Member
just curious what way(s) you'd personally would recommend besides XOR.
thanks
-
Jul 17th, 2001, 03:17 PM
#6
PowerPoster
I would recommend RC4 or RC5, IDEA or 3DES, or Ecliptic Curve Algorithm.
-
Jul 17th, 2001, 10:09 PM
#7
Thread Starter
So Unbanned
The thing is it isn't a password, it's simple a linear-encryption(by that I mean it isn't based on a user-inputed value) algo. It's to encrypt the text so most people can't decrypt it, and it has done it's job because I can't do it.
Please anyone, help me.
Thanks,
-
Jul 18th, 2001, 12:10 AM
#8
Registered User
By Megatron, encrypt a file:
Code:
Sub Encrypt(ByVal sName As String)
Dim b() As Byte
Dim nb() As Byte
n = FileLen(sName)
ReDim b(n - 1)
ReDim nb(n - 1)
Open sName For Binary Access Read As #1
Get #1, , b()
Close #1
Kill sName
For i = LBound(b) To UBound(b)
nb(i) = b(i) Xor 5
Next i
Open sName For Binary Access Write As #1
Put #1, , nb()
Close #1
End Sub
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
|