import random


def generate_wcs(short = False):
   """
   Generates a new random secret string.

   :param short: If `True`, generate string of length 6, else 12
   :type short: bool

   :returns: str -- The generated secret.
   """
   if short:
      l = 6
   else:
      l = 12
   return ''.join([random.choice("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_") for _ in range(l)])