Skip to content
Simpler version of doubly-permuted homomorphic encryption (DPHE) proposed in our ICCV paper.
Jupyter Notebook
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DPHE-demo.ipynb
LICENSE
README.md

README.md

DPHE-demo

This is a simpler version of doubly-permuted homomorphic encryption (DPHE) proposed in our ICCV paper:

Ryo Yonetani, Vishnu Naresh Boddeti, Kris M. Kitani, Yoichi Sato: “Privacy-Preserving Visual Learning Using Doubly Permuted Homomorphic Encryption”, International Conference on Computer Vision, 2017 (arxiv preprint)

Installation tips

phe is a python library for Paillier encryption: https://github.com/n1analytics/python-paillier and can be installed via pip install phe. If you are using Python 2.7 and get an error about printing function on the above pip verson, just try to use my forked version: https://github.com/yonetaniryo/python-paillier.

Note

I made this notebook just for showing how the proposed DPHE works on simple cases. The functions in the notebook cannot be applied directly to sparse vectors with different numbers of non-zeros. Also, if you want to take real valued vectors (i.e., not integers) as input, please make sure to transform them to valid integers before encryption. More specifically, please refer to https://github.com/yonetaniryo/python-paillier/blob/master/phe/paillier.py.

You can’t perform that action at this time.