def get(self, key_name, decrypt=True):
self._assert_valid_stash()<EOL>key = self._storage.get(key_name).copy()<EOL>if not key.get('<STR_LIT:value>'):<EOL><INDENT>return None<EOL><DEDENT>if decrypt:<EOL><INDENT>key['<STR_LIT:value>'] = self._decrypt(key['<STR_LIT:value>'])<EOL><DEDENT>audit(<EOL>storage=self._storage.db_path,<EOL>action='<STR_LIT:GET>',<EOL>message=json.dumps(dict(key_name=key_name)))<EOL>return key<EOL>
Return a key with its parameters if it was found.