Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Unbreakable encryption

Name: 1337 2020-02-15 5:26

#include<string.h>

#define QR(a, b, c, d) { a += b; d ^= a; c += d; b = ((b ^ c) << 1) ^ ((b ^ c) >> 7); }

void p(unsigned char secret[16]) {
int i;
int j;
for(i = 0; i != 16; ++i){
for(j = 0; j != 4; ++j)
QR(secret[j], secret[4+j], secret[8+j], secret[12+j]);
for(j = 0; j != 4; ++j)
QR(secret[4*j], secret[1+4*j], secret[2+4*j], secret[3+4*j]);
}
}

void encrypt(unsigned char secret[16], unsigned char key[16], unsigned char m[16]) {
int i;
memcpy(secret, key, 16);
p(secret);
for(i = 0; i != 16; ++i)
secret[i] ^= key[i] ^ m[i];
}

u cant break it ;)
faster than aes
best

Name: Anonymous 2020-02-15 10:27

where's the decrypt()?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List