docs: def generate_key(self, email):
          """
          Generate a new email confirmation key and return it.
          """
          salt = sha1(str(random())).hexdigest()[:5]
          return sha1(salt + email).hexdigest()