LCGUTIL-457: Refactor to use HMAC-SHA1
Replaced stpcpy and strncpy with safer options
Added asserts to internal methods