Comments (5)
Related to #33 .
from pyfhel.
The following code correctly saving-loading:
HE = Pyfhel()
HE.contextGen(p=65537)
HE.keyGen()
integer1 = 10
ctxt = HE.encryptInt(integer1)
ctxt.save("ctxt.txt")
m = PyCtxt()
m.load("ctxt.txt")
if integer1 == HE.decryptInt(m):
print("Save and Load is working correctly!")
What was causing the error is this assignment:
result = m.load("ctxt.txt")
print(HE.decryptInt(result))
from pyfhel.
contextGen
You can try Windows, but it's not solved.
from pyfhel.
The following code correctly saving-loading:
HE = Pyfhel() HE.contextGen(p=65537) HE.keyGen() integer1 = 10 ctxt = HE.encryptInt(integer1) ctxt.save("ctxt.txt") m = PyCtxt() m.load("ctxt.txt") if integer1 == HE.decryptInt(m): print("Save and Load is working correctly!")
What was causing the error is this assignment:
result = m.load("ctxt.txt") print(HE.decryptInt(result))
You can try Windows, but it's not solved.
from pyfhel.
Related to #54, solved in 73434f1 . Saving and loading works correctly in Windows and in Linux.
from pyfhel.
Related Issues (20)
- Does the library support bootstrapping for ckks HOT 1
- ImportError occurs when executing "import Pyfhel" HOT 6
- How to calculate squared euclidean distance? HOT 3
- ValueError: encrypted_ntt and plain_ntt parameter mismatch HOT 4
- How to duplicate the same number or set of numbers across an encrypted array?
- How to avoid `scale out of bounds` error in repeated multiplication? HOT 6
- Loading Saved ciphertext and decrypting it HOT 1
- ERROR: Could not build wheels for Pyfhel, which is required to install pyproject.toml-based projects HOT 3
- ValueError: encrypted_ntt and plain_ntt parameter mismatch in evaluate_polynomial HOT 1
- Installation error of Pyfhel HOT 2
- [up to 10 words short bug description]: [one-line error message] HOT 1
- How to print the ciphertext for BFV/CKKS scheme? HOT 4
- Not able to install Pyfhel module in Windows 10 HOT 6
- unable to install on windows11 HOT 2
- unable to install on WSL ubuntu
- License ambiguity: GPL or Apache 2.0? HOT 2
- pip Pyfhel went wrong HOT 2
- `ImportError` when running `from Pyfhel import Pyfhel` HOT 2
- How to pickle an Ptxt? HOT 2
- scale mismatch HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyfhel.