public function makeFrontSideMask($maskLength, $byteLength) {
        $maskValue = 0;
        $bitLength = $byteLength * 8;
        $maskString = "";
        $valueStore = 0;
        for ($i = 0; $i < $bitLength; $i++) {
            $maskValue <<= 1;
            if ($i < $maskLength) {
                $maskValue += 1;
            }
            $valueStore++;
            $binRep = BinaryStringAtom::createHumanReadableBinaryRepresentation($maskValue);
            if ($valueStore == 8) {
                $char = chr($maskValue);
                $maskString .= $char;
                $maskValue = 0;
                $valueStore = 0;
            }
        }
        return $maskString;
    }