Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help!!!
#30
Hehe, well I thought I'd go on moneo's post earlier with the XOR thing. Please don't think I'm taking over your topic, I thought this was enough on topic to post...

Code:
Dim plaintxt As String
Dim pass As Integer
Dim xorchar As Integer
Dim encrypted As String
Dim ciphered As String

Input "Text to encrypt: ", plaintxt
Input "Password (numeric): ", pass

Randomize pass

For i = 1 To Len(plaintxt)
    xorchar = Int(Rnd(1) * 255 + 1)
    encrypted += chr$(asc(mid$(plaintxt,i,1)) xor pass)
Next i

Print encrypted

'Try unencrypting

Input "Text to cipher: ", encrypted
Input "Password (numeric): ", pass

Randomize pass

For i = 1 To Len(encrypted)
    xorchar = Int(Rnd(1) * 255 + 1)
    ciphered += chr$(asc(mid$(encrypted, i, 1)) xor pass)
Next i

Print ciphered
sleep

Just made the pass a bit different. Be careful what kind of password you choose, it can be quite difficult to cipher. I don't know if this made it any more difficult to cipher or not.
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
Reply


Messages In This Thread
Help!!! - by Polter - 06-06-2006, 09:24 PM
Re: Help!!! - by Moneo - 06-07-2006, 04:15 AM
Help!!! - by Ralph - 06-07-2006, 05:29 AM
Help!!! - by Polter - 06-07-2006, 03:25 PM
Help!!! - by na_th_an - 06-07-2006, 03:49 PM
Help!!! - by Polter - 06-07-2006, 04:01 PM
Help!!! - by Skyler - 06-07-2006, 06:34 PM
Help!!! - by Moneo - 06-08-2006, 03:57 AM
Help!!! - by Ralph - 06-08-2006, 07:39 AM
Help!!! - by Polter - 06-08-2006, 07:39 AM
Help!!! - by Polter - 06-08-2006, 10:03 AM
Help!!! - by Polter - 06-08-2006, 01:27 PM
Help!!! - by Ralph - 06-08-2006, 08:38 PM
Help!!! - by Moneo - 06-09-2006, 12:25 AM
Help!!! - by Ralph - 06-09-2006, 12:35 AM
Help!!! - by Skyler - 06-09-2006, 01:49 AM
Help!!! - by Skyler - 06-09-2006, 01:50 AM
Help!!! - by Ralph - 06-09-2006, 02:19 AM
Help!!! - by Moneo - 06-09-2006, 06:03 AM
Help!!! - by Ralph - 06-09-2006, 09:13 AM
Help!!! - by Polter - 06-09-2006, 01:58 PM
Help!!! - by Skyler - 06-10-2006, 12:34 AM
Help!!! - by Ralph - 06-10-2006, 01:00 AM
Help!!! - by Polter - 06-10-2006, 05:52 AM
Help!!! - by Ralph - 06-10-2006, 07:48 AM
Help!!! - by Polter - 06-10-2006, 08:42 AM
Help!!! - by Polter - 06-10-2006, 09:37 AM
Help!!! - by Ralph - 06-10-2006, 10:07 AM
Help!!! - by Polter - 06-10-2006, 02:37 PM
Help!!! - by Torahteen - 06-18-2006, 01:39 AM
Help!!! - by Ralph - 06-18-2006, 02:27 AM
Help!!! - by Polter - 06-18-2006, 05:01 AM
Help!!! - by yetifoot - 06-18-2006, 02:02 PM
Help!!! - by Ralph - 06-18-2006, 08:27 PM
Help!!! - by yetifoot - 06-18-2006, 08:47 PM
Help!!! - by Torahteen - 06-18-2006, 08:53 PM
Help!!! - by Ralph - 06-19-2006, 06:47 AM
Help!!! - by Polter - 06-19-2006, 09:52 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)