Update bug

This commit is contained in:
Afeedh Shaji 2021-04-01 22:09:17 +05:30
parent 4cc59010df
commit 80474626c5
6 changed files with 652 additions and 652 deletions

Binary file not shown.

View File

@ -3,16 +3,16 @@
"key_ops": [
"decrypt"
],
"p": "qlnU___GmUty5AejAC0s3w",
"q": "zd0o1V2uxS3KNbrA_xDrpQ",
"p": "wzK2-wTf7umzANlX_GpNPw",
"q": "0C4-I-J9jl_qK4NaelLtAQ",
"pub": {
"kty": "DAJ",
"alg": "PAI-GN1",
"key_ops": [
"encrypt"
],
"n": "iP0aSeUu_s_4gTEjhls8hI-7FYk_YLdKa_88_YQ-oLs",
"kid": "Paillier public key generated by pheutil on 2021-03-14 03:25:45"
"n": "nrx3KnoDI7bspt0XVcPhOgVqLgV_S6Nruyw2CSoboD8",
"kid": "Paillier public key generated by pheutil on 2021-04-01 22:09:04"
},
"kid": "Paillier private key generated by pheutil on 2021-03-14 03:25:45"
"kid": "Paillier private key generated by pheutil on 2021-04-01 22:09:04"
}

View File

@ -4,6 +4,6 @@
"key_ops": [
"encrypt"
],
"n": "iP0aSeUu_s_4gTEjhls8hI-7FYk_YLdKa_88_YQ-oLs",
"kid": "Paillier public key generated by pheutil on 2021-03-14 03:25:45"
"n": "nrx3KnoDI7bspt0XVcPhOgVqLgV_S6Nruyw2CSoboD8",
"kid": "Paillier public key generated by pheutil on 2021-04-01 22:09:04"
}

2
run.py
View File

@ -120,6 +120,6 @@ if __name__ == "__main__":
fp_arr = FingerCode(fp_img_path).result
enroll(fp_arr)
elif opt == 2:
fp_img_new = "./dataset/110_2.tif"
fp_img_new = "./dataset/101_2.tif"
fp_arr_new = FingerCode(fp_img_new).result
validate(conn, fp_arr_new)

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
from .partial_homomorphic_encr import PartialHomomorphicEncryption
from .paillier import Paillier
if __name__ == "__main__":
paillier = PartialHomomorphicEncryption(256)
paillier.generate_key_pair()
paillier = Paillier(256)
paillier.generate_key_pair()