Homomorphic Computations in R

Homomorphic computations in R for privacy-preserving applications. Currently only the Paillier Scheme is implemented.

Install this package the usual way in R or via:


Two vignettes are provided:

vignette(package = "homomorpheR")

will list them after installation.

Vignettes in package 'homomorpheR':

introduction            Introduction to Homomorphic Computation
                        (source, html)
homomorphing            MLE using Homomorphic Computation (source,

Then view, for example, as follows:

vignette("introduction", package="homomorpheR")

Three examples are provided:

  • A quick and easy introduction to homomorphic computations
  • An example of Homomorphic Maximum Likelihood Estimation for a Poisson parameter.
  • A larger example of Homomorphic Computations for fitting a Stratified Cox Regression model where the data is distributed across sites.

Eventually, as this library becomes industrial strength, it will be incorporated into the computations defined in distcomp.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.2-2 by Balasubramanian Narasimhan, 2 years ago


Report a bug at http://github.com/bnaras/homomorpheR/issues

Browse source code at https://github.com/cran/homomorpheR

Authors: Balasubramanian Narasimhan [aut, cre]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports R6, gmp, sodium

Suggests knitr, rmarkdown, survival

See at CRAN