![]() |
XOR Encryption
I'm not sure if anyone has done this before, but I was rather bored so I made a XOR Encryption function with my own additions to get rid of the parts of the ASCII character set that aren't really shown in Graal.
PHP Code:
PHP Code:
From what I hear, this method is hard, if not impossible to decrypt, and it's rather simple. |
Nice one. :)
|
Quote:
|
Quote:
|
Quote:
|
I just did a simple test, and there's something wrong with this code (I'm not sure what it is). XOR ciphers are solvable via (plaintext) XOR (ciphertext), meaning if I encrypt the encrypted text using the same key, I should get the original text.
PHP Code:
PHP Code:
Correct me if I'm wrong. |
Yeah, like I said I had to go around some ASCII characters that can't be displayed. So I replaced all those with "-". So, in that sense, you shouldn't be able to decrypt it. If you stick with ASCII characters by setting the second parameter false you really shouldn't be able to.
|
:( Good job, anyways, though. I'm wondering, though, why is it that spaces can't be used? I'm a newbie, so I don't quite understand. I just removed the replacing part of the code, and it encrypts an decrypts just fine; encrypting an encrypted text returns the original text, even with the spaces.
|
I know, I just didn't like that a lot of the characters wouldn't display correctly.
|
Quote:
|
Quote:
PHP Code:
|
| All times are GMT +2. The time now is 07:52 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.