|
|
BSD 4.3
#include <ctype.h>
unsigned short
hashpass(hpw)
char *hpw;
{
long hash;
register char c;
hash = 0;
while ((c = *hpw++) != '\0') {
hash = (hash*65536) + (isupper(c) ? tolower(c) : c);
hash %= 65357;
}
return((unsigned short) hash);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.