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 one lower case character contains at least one number contains at least one symbols (e.g. @#$%) Here is the python 3.8 code I used to generate a random
How to select the values and the length of a random string? [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question 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
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: While it does work its rather slow, because if the function returns False a
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: The thing here is, everything works and it generates 2 string password petty well. However, if length exceeds 2 or 3 strings. Well, it kind of moves at snail pace. Then I got an idea, if I could save the randomly generated password in
Masking user input in python with asterisks [duplicate]
This question already has answers here: Getting a hidden password input (6 answers) Closed 7 months ago. 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
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