 |
|
Cedayon
|
|
k, the encryption:
x = random number from 1 to 31
output binary 5 bit binary encoding of x
output x random bits
for each character a in the input string:
__b = binary encoding of a
__y = random number from 0 to 1
__output y
__if (y == 0)
____output flip1(b)
__if (y == 1)
____output flip2(b)
output x random bits
output = flipS(output)
done
flip1, given an 8 character string, outputs it in the order: 2,1,4,3,6,5,8,7
flip2, given an 8 character string, outputs it in the order: 3,4,1,2,7,8,5,6
flipS, given an input string, outputs it in reverse order.
Decryption is obvious, just very tedious, which is why we're letting the computer do it 
|
|
|  |
 |
|
Cedayon
|
|
I'm taking Web Programming right now (May term), so the actual program follows from what I've been studying, and the actual encryption stuff is nothing special... I could have made it much more complicated, actually (with, say, a 2-3 bit prefix to each character, choosing between 4 or 8 different kinds of flipping, or 8-16 if I did something different with characters at places that are multiples of the random key number or have the same evenness/oddness of the key), but I figured this would be sufficient... I'll save the other tricks for the possibility that this code is compromised.
It was a decent amount of work, though, and I'm glad it's helpful and appreciated 
I wonder how hard the other factions will try to crack it... it's certainly possible (some of them seem quite intelligent), but it would be a lot of time investment, which is time investment not devoted to strategizing and such... and I would just change the code to something much more painful 
|
|
|  |
 |
|
Cedayon
|
|
Oh, sorry, I thought I mentioned that you can't have line breaks in the to-be-translated string, or it pukes horribly 
It's not much of a loss, because it can only take so large an input too, before it just gives up or something.
It's not perfect, just give it small inputs and it will perform acceptably (there's still that odd thing where it puts a '*' after every ')' when decoding).
As for Honghu's code... *shrug* I'm not gonna try to crack it, I just plug it into my decryptors to see if they broke the codes. We, the cyborg faction, have an RP justification for writing in binary... the Hive doesn't, they may as well write in Navaho or something if they want a code 
|
|
|  |
 |
|
Cedayon
|
|
If you want I can make a 3rd version of the encryptor that uses an even-more-disgustingly-mangling code, so even if they do break this one (which I don't see happening) it won't matter much.
|
|
|  |
 |
|
Kody
|
|
If life's standing still and your soul's confused
Jun 2003 time: 14:28
|
|
So here it is.
|
|
|  |
 |
|
Kody
|
|
If life's standing still and your soul's confused
Jun 2003 time: 14:28
|
|
The one you saw was simply encoded using 7 bits instead of 8. Taking advantage of the fact that alpha-numeric ascii doesn't use the 8th bit.
|
|
|  |
All times are GMT. The time now is 05:28. Apolyton Time is 00:28. |
top of page
|
| archivepost |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|