def rzpad(value, total_length):
    " Right zero pad value `x` at least to length `l`.\n\n    >>> zpad('', 1)\n    '\x00'\n    >>> zpad('Êþ', 4)\n    'Êþ\x00\x00'\n    >>> zpad('ÿ', 1)\n    'ÿ'\n    >>> zpad('Êþ', 2)\n    'Êþ'\n    "
    return value + b'\x00' * max(0, total_length - len(value))
