Overflow bug fixed, now using temp var for crypt results.
Using unsigned int as parm type, to work around silly compiler warnings.