Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving and loading doesn't work for windows10 system. #33

Closed
767472021 opened this issue Apr 10, 2019 · 3 comments
Closed

Saving and loading doesn't work for windows10 system. #33

767472021 opened this issue Apr 10, 2019 · 3 comments

Comments

@767472021
Copy link

# -*- coding:utf-8 -*-
from Pyfhel import Pyfhel, PyPtxt, PyCtxt
HE = Pyfhel()
HE.contextGen(p=65537)
HE.keyGen()
integer1 = 10
ctxt = HE.encryptInt(integer1)
ctxt.save("ctxt.c1")
m = PyCtxt()
result = m .load("ctxt.c1")
# print(HE.decryptInt(result))

It is just because the ciphertext exported by the load() function cannot be decrypted on the Windows platform.

@lorepieri8
Copy link

Solved in #40.

@ibarrond
Copy link
Owner

ibarrond commented Sep 6, 2020

Related to #53

@ibarrond
Copy link
Owner

ibarrond commented Oct 1, 2020

Now it runs correctly, tested in Windows and Linux in 73434f1

@ibarrond ibarrond closed this as completed Oct 1, 2020
@ibarrond ibarrond changed the title This test code can't run on windows10 system. Saving and loading doesn't work for windows10 system. Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants