From 6433caac61789e279fdec0043a65e5ab44d136ab Mon Sep 17 00:00:00 2001 From: nuhmanpk Date: Sat, 14 Oct 2023 15:15:42 +0530 Subject: [PATCH] fixes --- generateApiKey/__init__.py | 3 ++- setup.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/generateApiKey/__init__.py b/generateApiKey/__init__.py index b0cbea0..fe2f320 100644 --- a/generateApiKey/__init__.py +++ b/generateApiKey/__init__.py @@ -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}" ) diff --git a/setup.py b/setup.py index a6b23d1..75f6e83 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setuptools.setup( name="generateApiKey", - version="0.4.0", + version="0.4.5", author="Nuhman Pk", author_email="nuhmanpk7@gmail.com", long_description = README,