homenc / HElib

HElib is an open-source software library that implements homomorphic encryption. It supports the BGV scheme with bootstrapping and the Approximate Number CKKS scheme. HElib also includes optimizations for efficient homomorphic evaluation, focusing on effective use of ciphertext packing techniques and on the Gentry-Halevi-Smart optimizations.
https://homenc.github.io/HElib
Other
3.15k stars 764 forks source link

How can I encrypt a file? #17

Closed wilsonalberto-git closed 10 years ago

wilsonalberto-git commented 10 years ago

Hi everyone, I am interesting in HElib, I downloaded and Installed, also I followed the demo, and everything is ok. Now, I just wanted to know how I can encrypt a file (for instance: txt, doc, or xls) and modified in the encrypted domain by using HElib. As I see in the sample code, it is used a plaintextArray, but I do not really know how can I covert a file (txt, doc or xls) into plaintextArray.

Thank you for your help.

ghada2011 commented 10 years ago

Hi, Wilson Could you install it on linux? I have an error "it is not type name Vec" can you help me with that

wilsonalberto-git commented 10 years ago

Hi Ghada, I installed it on Linux Ubuntu, follow next link: http://pwnhome.wordpress.com/2013/05/03/guide-to-helib-1/

ghada2011 commented 10 years ago

Thanks Wilson I did succeed to make the Library However, many many errors appeared when I tried to make Test_General_x do you have idea why? it seems that fhe.a is not linked to ntl Regards

ghada2011 commented 10 years ago

OK, I solve it thanks

shaih commented 10 years ago

These kinds of errors usually occur when using NTL version prior to 6.1.0

onesiess commented 1 year ago

CMake Error at CMakeLists.txt:39 (find_package): By not providing "Findhelib.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "helib", but CMake did not find one.

Could not find a package configuration file provided by "helib" (requested version 2.2.0) with any of the following names:

helibConfig.cmake
helib-config.cmake

Add the installation prefix of "helib" to CMAKE_PREFIX_PATH or set "helib_DIR" to a directory containing one of the above files. If "helib" provides a separate development package or SDK, be sure it has been installed. it happened when i run the examples,can you tell me how should slove it? thank you very much