passwords

trying to create script that scan for secrets in python code

trying to create script that scan for secrets in python code Question: As part of our CI/CD we want to add some check to run code on python files and check if there are some secrets in code (like API, passwords etc.). I saw only programs that do this, and I want to create a …

Total answers: 1

How do I create a brute force password finder using python?

How do I create a brute force password finder using python? Question: I want to create a brute force password finder using python for ethical reasons, I looked up tutorials on how to do this and all the tutorials I found have variables that contain the password. I want to find the password but I …

Total answers: 1

Error while fetching data from MySql Database in python

Error while fetching data from MySql Database in python Question: I am trying to fetch password from Mysql database using WHERE clause in Python and storing the password in a variable "DbPassword" but when I am printing the "DbPassword" it prints "None" can anyone explain why this is happening and how can I solve this? …

Total answers: 1

Not displaying Input in Python

Not displaying Input in Python Question: I want to ask what changes we can make to our input function so that whatever we type as input is represented as a ‘*’.As we all have seen that when we type a password on the login page it gets written as ******* .Can this be done in …

Total answers: 3

How do I lock a python (.py) file for editing?

How do I lock a python (.py) file for editing? Question: I wrote an automation program which logs in to a website to perform a certain task. The .py file will be given to a number of users but I don’t want them to be able to read the code and see the password used …

Total answers: 6

How to programmatically trigger password reset email in django 1.7.6?

How to programmatically trigger password reset email in django 1.7.6? Question: I’ve encountered a problem where I had to load more than 200 new users into my django app and right away send them a password reset email. This had to happen only once, done only by me and run quietly on backend. Surfing the …

Total answers: 3

Python handling username and password for URL

Python handling username and password for URL Question: Messing with Python and I’m trying to use this https://updates.opendns.com/nic/update?hostname=, when you got to the URL it will prompt a username and password. I’ve been looking around and I found something about password managers, so I came up with this: urll = “http://url.com” username = “username” password …

Total answers: 4

Base64 Authentication Python

Base64 Authentication Python Question: I’m following an api and I need to use a Base64 authentication of my User Id and password. ‘User ID and Password need to both be concatenated and then Base64 encoded’ it then shows the example ‘userid:password’ It then proceeds to say ‘Provide the encoded value in an “Authorization Header”‘ ‘for …

Total answers: 8

Salt and hash a password in Python

Salt and hash a password in Python Question: This code is supposed to hash a password with a salt. The salt and hashed password are being saved in the database. The password itself is not. Given the sensitive nature of the operation, I wanted to make sure everything was kosher. import hashlib import base64 import …

Total answers: 8

Getting a hidden password input

Getting a hidden password input Question: You know how in Linux when you try some Sudo stuff it tells you to enter the password and, as you type, nothing is shown in the terminal window (the password is not shown)? Is there a way to do that in Python? I’m working on a script that …

Total answers: 6