Skip to content

Tag: passwords

Failing to print value

I’m new to python, an I decided to write a simple password manager to learn. I’m having trouble retrieving one of the values out of the dictionary. The function add_password write a key with 2 values (user, and password (encrypted)) And the function get_password read the key and supposed to get th…

Python password generation

I need to generate random passwords for my company’s 200k+ customers. The password complexity requirement is a common one: length > 8 contains at least one upper case character contains at least one lower case character contains at least one number contains at least one symbols (e.g. @#$%) Here is th…

How to disable list elements for one cycle?

I wrote a password generation script, it ensures that 2 characters of the same type cannot appear behind each other: “12” or “ab” are not possible. It always have to be different types, like “1a” or “a%” or “aB”. I currently use this to achieve it: W…

Mark data as sensitive in python

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 there a way to mark a value as “sensitive”, so it’s not saved anywhere by a debugger? Answer Edit I have made a so…

Securely Erasing Password in Memory (Python)

How do you store a password entered by the user in memory and erase it securely after it is no longer need? To elaborate, currently we have the following code: After calling the login method, what do we need to do to fill the area of memory that contains password with garbled characters so that someone cannot…