Skip to content

Commit

Permalink
Merge pull request #2 from nuhmanpk/v0.4.5-fixes
Browse files Browse the repository at this point in the history
fixes
  • Loading branch information
nuhmanpk authored Oct 14, 2023
2 parents 6c303c3 + 6433caa commit 6e2e7c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion generateApiKey/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC


def generateApiKey(secret, seed, include=None, add_dashes=False, pbkdf2_iterations=10000):
def generateApiKey(secret, seed, include=None, add_dashes=False):
try:
current_timestamp = int(time.time())
now = datetime.datetime.now()
pbkdf2_iterations = random.randint(1000,10000)
numeric_representation = int(
f"{now.year}{now.month:02d}{now.day:02d}{now.hour:02d}{now.minute:02d}{now.second:02d}"
)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name="generateApiKey",
version="0.4.0",
version="0.4.5",
author="Nuhman Pk",
author_email="[email protected]",
long_description = README,
Expand Down

0 comments on commit 6e2e7c2

Please sign in to comment.