Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard, raimo
#include <stdio.h>
struct W{char m,M[4??),w;void x(char
*W)??<w^=w;while(w[W]!=0)putchar(W[w
]^M[w++%5??));}W():m(040),w(0){char*
X="d@PLfAU\x05P)sHEMoTTPF""\31";for(
;w<5;w++[M??)=m++);x(X);}}w;main(){}#include <stdio.h>
char*_="XxTIHRCXCxTIHRXRCxTIHXHRCxTIXIHRCxTXTIHRCxXxTIHRCX";
int main(int l){for(l+=7;l!=putchar(010);++l);if(*(++_))main
(*_!=88?(putchar(*_^073)|putchar(33))&1:0xffff2a8b);}t i l e x wrote:Can you explain that a bit ?a = d
b = m
c = b
d = g
...
p = ]
P = }
#include <stdio.h>
char*_="XxTIHRCXCxTIHRXRCxTIHXHRCxTIXIHRCxTXTIHRCxXxTIHRCX";
int main(int l){for(l+=7;l!=putchar(010);++l);if(*(++_))main
(*_!=88?(putchar(*_^073)|putchar(33))&1:0xffff2a8b);}#include <stdio.h>
struct W{char m,M[4??),w;void x(char
*W)??<w^=w;while(w[W]!=0)putchar(W[w
]^M[w++%5??));}W():m(040),w(0){char*
X="d@PLfAU\x05P)sHEMoTTPF""\31";for(
;w<5;w++[M??)=m++);x(X);}}w;main(){}Corsix wrote:I think it should wrap around
eg. q->e, w->r, p->], [->q, ]->w
otherwise the example when decoded becomes "Hello Cpp9home!" (two shifts left of "-" is "9")
Darobat wrote:Actually I'll make it easier. Only letters and spaces will appear in the original. So a . is translated to an m. You will never have a . in the original.
#include <stdio.h>
char*_="XxTIHRCXCxTIHRXRCxTIHXHRCxTIXIHRCxTXTIHRCxXxTIHRCX";
int main(int l){for(l+=7;l!=putchar(010);++l);if(*(++_))main
(*_!=88?(putchar(*_^073)|putchar(33))&1:0xffff2a8b);}shifted, first row: ~!@#$%^&*()_+
regular, first row: `1234567890-=
shifted, second row: QWERTYUIOP{}
regular, second row: qwertyuiop[]
shifted, third row: ASDFGHJKL:"
regular, third row: asdfghjkl;'
shifted, fourth row: ZXCVBNM<>?
regular, fourth row: zxcvbnm,./
Before: Hello world from Corsix
After: Kt''[ r[y'g hy[. B[yfpvshifted, first row: ¬!"£$%^&*()_+
shifted, third row: ASDFGHJKL:@~
regular, third row: asdfghjkl;'#
shifted, fourth row: |ZXCVBNM<>?
regular, fourth row: \zxcvbnm,./ #include <stdio.h>
char*_="XxTIHRCXCxTIHRXRCxTIHXHRCxTIXIHRCxTXTIHRCxXxTIHRCX";
int main(int l){for(l+=7;l!=putchar(010);++l);if(*(++_))main
(*_!=88?(putchar(*_^073)|putchar(33))&1:0xffff2a8b);}Corsix wrote:the following lines differ on my keyboard
- Code: Select all
shifted, first row: ¬!"£$%^&*()_+
shifted, third row: ASDFGHJKL:@~
regular, third row: asdfghjkl;'#
shifted, fourth row: |ZXCVBNM<>?
regular, fourth row: \zxcvbnm,./
#include <stdio.h>
struct W{char m,M[4??),w;void x(char
*W)??<w^=w;while(w[W]!=0)putchar(W[w
]^M[w++%5??));}W():m(040),w(0){char*
X="d@PLfAU\x05P)sHEMoTTPF""\31";for(
;w<5;w++[M??)=m++);x(X);}}w;main(){}Users browsing this forum: No registered users and 0 guests