Skip to content

Commit

Permalink
Merge pull request #15 from tanmoysrt/Arkajit-Datta/main
Browse files Browse the repository at this point in the history
dependency update
  • Loading branch information
tanmoysrt authored Jul 26, 2023
2 parents 1f0af00 + 49b6ce0 commit 6c2e11e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
Binary file added dist/pyaadhaar-2.0.0-py3-none-any.whl
Binary file not shown.
Binary file added dist/pyaadhaar-2.0.1-py3-none-any.whl
Binary file not shown.
2 changes: 1 addition & 1 deletion pyaadhaar.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pyaadhaar
Version: 1.1.3
Version: 2.0.1
Summary: This library is built to ease the process of decoding aadhaar QR codes and XML. It supprts old aadhaar QR codes , newly released Secure aadhaar QR codes and also Offline e-KYC XML. This library also can decode QR codes with Opncv. This library bundled with all the features to verify user's Email Id and Mobile Number & also to extract the photo of user.
Home-page: https://github.com/Tanmoy741127/pyaadhaar
Author: Tanmoy Sarkar
Expand Down
1 change: 0 additions & 1 deletion pyaadhaar.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
setup.py
pyaadhaar/__init__.py
pyaadhaar/decode.py
pyaadhaar/test.py
pyaadhaar/utils.py
pyaadhaar.egg-info/PKG-INFO
pyaadhaar.egg-info/SOURCES.txt
Expand Down
11 changes: 5 additions & 6 deletions pyaadhaar/decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
from io import BytesIO
import base64
import zipfile
import pyaadhaar
from typing import Union

from . import utils

class AadhaarSecureQr:
# This is the class for Adhaar Secure Qr code.. In this version of code the data is in encrypted format
Expand Down Expand Up @@ -171,14 +170,14 @@ def saveimage(self, filepath:str) -> None:
def verifyEmail(self, emailid:str) -> bool:
if type(emailid) != str:
raise TypeError("Email id should be string")
generated_sha_mail = pyaadhaar.utils.SHAGenerator(emailid, self.data['adhaar_last_digit'])
generated_sha_mail = utils.SHAGenerator(emailid, self.data['adhaar_last_digit'])
return generated_sha_mail == self.sha256hashOfEMail()

# Verify the mobile no
def verifyMobileNumber(self, mobileno:str) -> bool:
if type(mobileno) != str:
raise TypeError("Mobile number should be string")
generated_sha_mobile = pyaadhaar.utils.SHAGenerator(mobileno, self.data['adhaar_last_digit'])
generated_sha_mobile = utils.SHAGenerator(mobileno, self.data['adhaar_last_digit'])
return generated_sha_mobile == self.sha256hashOfMobileNumber()


Expand Down Expand Up @@ -305,7 +304,7 @@ def saveimage(self, filepath:str) -> None:
# Verify the email id
def verifyEmail(self, emailid:str) -> bool:
# Will return True if emailid match with the given email id
generated_sha_mail = pyaadhaar.utils.SHAGenerator(
generated_sha_mail = utils.SHAGenerator(
str(emailid)+str(self.passcode), self.data['adhaar_last_digit'])
if generated_sha_mail == self.sha256hashOfEMail():
return True
Expand All @@ -315,7 +314,7 @@ def verifyEmail(self, emailid:str) -> bool:
# Verify the mobile number
def verifyMobileNumber(self, mobileno:str) -> bool:
# Will return True if mobileno match with the given mobile no
generated_sha_mobile = pyaadhaar.utils.SHAGenerator(str(mobileno)+str(self.passcode), self.data['adhaar_last_digit'])
generated_sha_mobile = utils.SHAGenerator(str(mobileno)+str(self.passcode), self.data['adhaar_last_digit'])
if generated_sha_mobile == self.sha256hashOfMobileNumber():
return True
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
setup(
name='pyaadhaar',
packages=find_packages(),
version='2.0.0',
version='2.0.1',
description='This library is built to ease the process of decoding aadhaar QR codes and XML. It supprts old aadhaar QR codes , newly released Secure aadhaar QR codes and also Offline e-KYC XML. This library also can decode QR codes with Opncv. This library bundled with all the features to verify user\'s Email Id and Mobile Number & also to extract the photo of user. ',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 6c2e11e

Please sign in to comment.