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 the values. I can’t get it to pull the
Tag: passwords
Proper data encryption with a user-set password in python3
I have been looking for a proper data encryption library in python for a long while, today I needed it once again, cannot find anything, so is there any way to encrypt data using a user-set password, if I find something it’s usually insecure, if I find a good solution it has no support for user-set passwords, meaning I’m stuck,
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 …
How to select the values and the length of a random string? [closed]
I made a list of the characters that I want in the string and also know the length. I just don’t know where to announce the characters that I want to use.` import random characters = (“a”, &…
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 …
How to make my Python password cracker operate more efficiently?
A little while ago I got interested in making a pseudo-password cracker. So, here’s some code: list = [ ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘8’, ‘9’, ‘0’, ‘a’,’b’,’c’,’d’,’e’,’f’,’g’,’h’,’i’,’j’,’k’,’…
Masking user input in python with asterisks
I am trying to mask what the user types into IDLE with asterisks so people around them can’t see what they’re typing/have typed in. I’m using basic raw input to collect what they type. Ideal IDLE prompt after user types password: Answer Depending on the OS, how you get a single character from user input and how to check for
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 solution that uses ctypes (which
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 recover the password