#NEWLINE# def decode( self , encoded , offset = 0 ) : #NEWLINE# #INDENT# length = struct . unpack_from ( '>I' , encoded , offset ) [ 0 ] #NEWLINE# offset += 4 #NEWLINE# self . challenge = encoded [ offset : ( offset + length ) ] #NEWLINE# try : #NEWLINE# #INDENT# self . challenge = str ( self . challenge ) #NEWLINE# #UNINDENT# except UnicodeEncodeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# offset += length #NEWLINE# return self