def get_key(self):
if self.key_name not in self.storage.extra_data:<EOL><INDENT>key = random_hex(<NUM_LIT:20>).decode('<STR_LIT:ascii>')<EOL>self.storage.extra_data[self.key_name] = key<EOL><DEDENT>return self.storage.extra_data[self.key_name]<EOL>
The key is preserved between steps and stored as ascii in the session.