/* Copyright (C)2000 by Faisal Nasim. Email: faisal <email protected> Date of creation: March 06, 2000 Built exclusively for PHP 4.x! */ /* prototype */ /* char *flocal_crypt ( char *in , char *crypt ); */ char *flocal_crypt ( char *in , char *crypt , long inlen ) { char *c = crypt; char *e = (char *) malloc ( inlen ); long cnt = inlen; /* binary safe! */ while ( cnt-- ) { if ( *c == '\0' ) c = crypt; *e++ = *in++ ^ *c++; } *e = '\0'; e -= inlen; return e; }