code: def split_id_otp(from_key):
      
      if len(from_key) > 32:
          public_id, otp = from_key[:-32], from_key[-32:]
      elif len(from_key) == 32:
          public_id = ''
          otp = from_key
      else:
          raise pyhsm.exception.YHSM_Error("Bad from_key length %i < 32 : %s" \
                                         % (len(from_key), from_key))
      return public_id, otp
docs: Separate public id from OTP given a YubiKey OTP as input.
  
      @param from_key: The OTP from a YubiKey (in modhex)
      @type from_key: string
  
      @returns: public_id and OTP
      @rtype: tuple of string