def _decrypt(self, value, encrypted_value):
if sys.platform == '<STR_LIT:win32>':<EOL><INDENT>return self._decrypt_windows_chrome(value, encrypted_value)<EOL><DEDENT>if value or (encrypted_value[:<NUM_LIT:3>] != b'<STR_LIT>'):<EOL><INDENT>return value<EOL><DEDENT>encrypted_value = encrypted_value[<NUM_LIT:3>:]<EOL>encrypted_value_half_len = int(len(encrypted_value) / <NUM_LIT:2>)<EOL>cipher = pyaes.Decrypter(pyaes.AESModeOfOperationCBC(self.key, self.iv))<EOL>decrypted = cipher.feed(encrypted_value[:encrypted_value_half_len])<EOL>decrypted += cipher.feed(encrypted_value[encrypted_value_half_len:])<EOL>decrypted += cipher.feed()<EOL>return decrypted.decode("<STR_LIT:utf-8>")<EOL>
Decrypt encoded cookies