PwnedPasswords | PwnedPasswords as a Service | Identity Management library
kandi X-RAY | PwnedPasswords Summary
kandi X-RAY | PwnedPasswords Summary
PwnedPasswords as a Service
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PwnedPasswords
PwnedPasswords Key Features
PwnedPasswords Examples and Code Snippets
Community Discussions
Trending Discussions on PwnedPasswords
QUESTION
I have a Python program in which I am using tkinter. What I would like is to have a button, with which I could change the language of other buttons/labels etc. throughout the whole program.
Upon restart it doesn't have to be able to save the preference, although if there's a way then I would love to have it save it. Maybe it would append an .txt document and upon opening check it to see what language was used etc. Could please someone tell me how to do that?
...ANSWER
Answered 2021-May-04 at 15:49A .txt file would be very useful. I would try creating one and then writing to it something like:
line = 'Good Morning !?!?! Bonjour'
Where !?!?!
or any other seperator element would be your seperator. This way getting the text 'Good Morning' in French would be done like this:
QUESTION
I am writing a code that checks anonymously for password leaks. It should take in your password and spit out in how many leaks has this password been previously found.
Currently the output looks life this:
...ANSWER
Answered 2021-Apr-27 at 08:40If I understand, you want to split the output into lines searching for the line that contains your hash and then split the line by ':'
.
There are several options to solve this, using regex, using python builtin methods.
Regex:
QUESTION
Here is my code. It gets a list of hashes, which are leaked. I want to check my password against it. What I want it to do, is to, when it finds it to throw me back the number of occurrences it has been leaked, if at all. How can this be accomplished? For example sake, let's say our necessary hash happens to be the 2nd one and thus we want to extract the number 3. What we have already is the hash infront of it. It is named "ending" as you can see in the code.
...ANSWER
Answered 2021-Apr-18 at 19:15try to use this code:
QUESTION
I wrote the following code but the problem is that I recieved an error (AttributeError: 'bytes' object has no attribute 'hexdigest'
)
the error syntax doesn't work
ANSWER
Answered 2021-Apr-18 at 12:18You need to add a parenthesis after hashlib.sha1(password.encode('utf-8')
, so hexdigest().upper()
is called on it.
The following code works for me:
QUESTION
I'm getting a text file as API response from here https://api.pwnedpasswords.com/range/D0597 that looks like this
...ANSWER
Answered 2020-Aug-03 at 09:41// data is your text file
var foo = data.split("\n"),
bar = "your input";
Object.keys(foo).forEach(function(key) {
if (foo[key].split(":")[0] === bar) {
console.log(foo[key].split(":")[1]);
}
});
QUESTION
I'm calling the haveibeenpwned api to search the prefix of a password's sha1 value exists in a database. (form submit bound to an ajax call to a php script). The response is all the compromised passwords in sha1 with the same prefix as my password's along with their incidence count.
The response looks like the following, with no brackets or quotations. You can see an example call here.
...ANSWER
Answered 2020-Apr-15 at 10:23The response you get from the server is in plain text and returned data is a sequence of lines in the form
ppp : nnn
where ppp is the 40 characters long sha1 hashed password and nnn is the incidence count.
You can easily turn that response into an associative array in PHP, turn the array into JSON and send back JSON encoded data to the frontend JavaScript:
QUESTION
I am unable to connect with the pwnedpasswords API when I define a function and I get error "400", which is a bad request. I am using the following code:
...ANSWER
Answered 2020-Mar-31 at 12:12The problem is with the 123, if you try CBFDA in the first code it will work, it gives this error with 123:
"The hash prefix was not in a valid format"
This happens because 123 is not a valid hash prefix
QUESTION
I'm trying to use libcurl to download the content of a webpage however the responses I get back are much smaller than expected - the documentation says that the maximum size is 16K but the responses I'm getting are much much smaller than that.
For example, requesting the en Wikipedia page "Hello" returns a size of 1239 bytes when the page is 71915 bytes in gedit. Requesting a page from the haveibeenpwned API returns a size of 554, not the actual size which is 19942 bytes.
...ANSWER
Answered 2018-Nov-23 at 15:08Check out the documentation. It says:
The callback function will be passed as much data as possible in all invokes, but you must not make any assumptions. It may be one byte, it may be thousands.
It doesn't say so explicitly, but this function might be called more than once. You can use the userdata
pointer (which you haven't used) to keep track of your previous data. I advise you also take a look at the example code:
QUESTION
New details added beneath the source code.
Having an issue is Delphi where the Internet code works on Win 10, but not on Win 7. I’m trying to hook up a small project to haveibeenpwned.com (HIBP). Win 7 returns “Error getting Server Certificate.”
To try to fix the Win 7 issue, I added an OnValidateServerCertificate to both the TNetHTTPRequest and TNetHTTPClient. In both Win 10 and Win 7, OnValidateServerCertificate does not seem to be called.
I have tested on 2 Win 10 computers and 2 Win 7 computers, same results. 1) Why does Win 7 return “Error getting Server Certificate? 2) Why doesn’t OnValidateServerCertificate get called on Win 10 or Win 7?
Thanks for any help!
...ANSWER
Answered 2018-Jun-13 at 18:26Couldn't get the haveibeenpwned.com (HIBP) certificate to work on my 3 Win 7 test computers. One VM, 2 physical.
Downloaded HIBP data and imported some of it as a test to Amazon S3 with each 5 character prefix as an S3 public object.
Now the same code as above works with only the url changed.
I still don't know why the "Error getting Server Certificate" kept appearing on Win 7, but found an acceptable work around.
Thanks to all who viewed this!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PwnedPasswords
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page