All pastes #905857 Raw Edit

Anonymous

public c v1 · immutable
·published 2008-02-16 02:10 UTC
rendered paste body
#include <stdio.h>char* encryptx(char*buff,int key){      char *zomg=strdup(buff);    int x=strlen(zomg);    int i;for(i = 0; i < x; i++){      zomg[i]|=key;}return zomg;}char* decryptx(char*buff,int key){      char *zomg=strdup(buff);      char *d=strdup(buff);//hack    int x=strlen(zomg);    int i;for(i = 0; i < x; i++){      d[i]==~(zomg[i]|key);}return d;}int main(){    char*z=encryptx("weinder.exe",3);    char*x=decryptx(z,3);    printf("%s - %s",z,x);    return getchar();}