Skip to content

Commit

Permalink
Merge pull request #10 from plasticuproject/dev
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
plasticuproject committed Jan 28, 2022
2 parents c929aca + 71b2aa1 commit 5d932eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -33,7 +33,7 @@ search_pastes <br/>
search_password <br/>
search_hashes <br/>

All functions return a JSON objects containing relevent data, with the exception <br/>
All functions return a list of JSON objects containing relevent data, with the exception <br/>
of search_password and search_hashes, which returns an integer and a string object, <br/>
respectively. <br/>

Expand Down
8 changes: 4 additions & 4 deletions hibpwned/__init__.py
Expand Up @@ -37,7 +37,7 @@ def _check(resp: requests.models.Response) -> None:
" has therefore not been pwned")
elif resp.status_code == 429:
print("Too many requests: The rate limit has been exceeded\n")
print(resp.text) # lgtm [py/clear-text-logging-sensitive-data]
print(resp.text) # lgtm[py/clear-text-logging-sensitive-data]
except requests.RequestException:
print("ERROR: Could not connect to server")

Expand Down Expand Up @@ -445,9 +445,9 @@ def search_password(self, password: str) -> Union[int, str]:
>>> data = foo.search_password("BadPassword")
"""
url = "https://api.pwnedpasswords.com/range/"
hash_object = hashlib.sha1(
bytes(password,
encoding="utf-8")) # lgtm [py/weak-sensitive-data-hashing]
hash_object = hashlib.sha1( # lgtm[py/weak-sensitive-data-hashing]
bytes(password, # lgtm[py/weak-sensitive-data-hashing]
encoding="utf-8")) # lgtm[py/weak-sensitive-data-hashing]
hexdig = hash_object.hexdigest()
hexdig = hexdig.upper()
hsh = hexdig[:5]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
@@ -1,7 +1,7 @@
"""Setup file"""
from setuptools import setup # type: ignore

VERSION = "1.3.1"
VERSION = "1.3.2"

with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
Expand Down

0 comments on commit 5d932eb

Please sign in to comment.