Mark data as sensitive in python

后端 未结 5 2065
[愿得一人]
[愿得一人] 2020-11-29 05:57

I need to store a user\'s password for a short period of time in memory. How can I do so yet not have such information accidentally disclosed in coredumps or tracebacks? Is

5条回答
  •  囚心锁ツ
    2020-11-29 06:21

    No way to "mark as sensitive", but you could encrypt the data in memory and decrypt it again when you need to use it -- not a perfect solution but the best I can think of.

提交回复
热议问题