if(!strncmp(sp,magic,strlen(magic)))
sp += strlen(magic);
/* It stops at the first '$', max 8 chars */
/* It stops at the first '$', max MD5_SALT_SIZE chars */
for(ep=sp;*ep && *ep != '$' && ep < (sp+8);ep++)
for(ep=sp;*ep && *ep != '$' && ep < (sp+MD5_SALT_SIZE);ep++)
continue;
/* get the length of the true salt */