def split_id_otp(from_key):
if len(from_key) > <NUM_LIT:32>:<EOL><INDENT>public_id, otp = from_key[:-<NUM_LIT:32>], from_key[-<NUM_LIT:32>:]<EOL><DEDENT>elif len(from_key) == <NUM_LIT:32>:<EOL><INDENT>public_id = '<STR_LIT>'<EOL>otp = from_key<EOL><DEDENT>else:<EOL><INDENT>raise pyhsm.exception.YHSM_Error("<STR_LIT>"% (len(from_key), from_key))<EOL><DEDENT>return public_id, otp<EOL>
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