Object serialization in python | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Object serialization in python

I would like to know, if there is a safe way to store objects and their attributes and methods. I found the pickle module, but there is a warning that it is possible for arbitrary code to be executed through it.

10th Dec 2018, 7:07 PM
Dimitris K
Dimitris K - avatar
2 ответов
+ 2
If you store the pickle data in a file on a user's PC, they can modify it to change the data and break your program. If you store it on your secure server, nobody can touch it so it is save.
10th Dec 2018, 11:20 PM
John Wells
John Wells - avatar
+ 1
i see... thanks for your answer!!!
10th Dec 2018, 11:24 PM
Dimitris K
Dimitris K - avatar