merged new activation code generator

merged new activation code generator from https://apps.topcoder.com/bugs/browse/BUGR-10168